summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/profiles.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/sets/profiles.py b/pym/portage/sets/profiles.py
index 35cf4d87d..011412a53 100644
--- a/pym/portage/sets/profiles.py
+++ b/pym/portage/sets/profiles.py
@@ -14,8 +14,12 @@ class PackagesSystemSet(PackageSet):
def __init__(self, profile_paths):
super(PackagesSystemSet, self).__init__()
self._profile_paths = profile_paths
- self.description = "System packages for profile %s" % self._profile_paths[-1]
-
+ if profile_paths:
+ description = self._profile_paths[-1]
+ else:
+ description = None
+ self.description = "System packages for profile %s" % description
+
def load(self):
mylist = [grabfile_package(os.path.join(x, "packages")) for x in self._profile_paths]
mylist = stack_lists(mylist, incremental=1)