summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-03 20:44:29 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-03 20:44:29 +0000
commit5e98adc32dfc597e53d0eb3bfe44572d319cfa99 (patch)
treeef4bc8e4be093396c3d4dc8398c2a35fc72789de /pym
parent288aa84849d9c08a422952a7ef43b58a4f12714b (diff)
downloadportage-5e98adc32dfc597e53d0eb3bfe44572d319cfa99.tar.gz
portage-5e98adc32dfc597e53d0eb3bfe44572d319cfa99.tar.bz2
portage-5e98adc32dfc597e53d0eb3bfe44572d319cfa99.zip
Make PackagesSystemSet.description refer to the real profile rather than
/etc/portage/profile when possible. svn path=/main/trunk/; revision=10561
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/sets/profiles.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/sets/profiles.py b/pym/portage/sets/profiles.py
index 011412a53..8efa0ec05 100644
--- a/pym/portage/sets/profiles.py
+++ b/pym/portage/sets/profiles.py
@@ -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