when neither /etc/make.profile nor /etc/portage/profile exist.
svn path=/main/trunk/; revision=10560
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)