Make PackagesSystemSet.description refer to the real profile rather than
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 20:44:29 +0000 (20:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Jun 2008 20:44:29 +0000 (20:44 -0000)
/etc/portage/profile when possible.

svn path=/main/trunk/; revision=10561

pym/portage/sets/profiles.py

index 011412a538967c80a6705806f20a96c28cc5591c..8efa0ec056ea55a8fa22a644363f99a9504a3e2d 100644 (file)
@@ -16,6 +16,9 @@ class PackagesSystemSet(PackageSet):
                self._profile_paths = profile_paths
                if profile_paths:
                        description = self._profile_paths[-1]
+                       if description == "/etc/portage/profile" and \
+                               len(self._profile_paths) > 1:
+                               description = self._profile_paths[-2]
                else:
                        description = None
                self.description = "System packages for profile %s" % description