From: Zac Medico Date: Tue, 3 Jun 2008 20:44:29 +0000 (-0000) Subject: Make PackagesSystemSet.description refer to the real profile rather than X-Git-Tag: v2.2_pre8~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5e98adc32dfc597e53d0eb3bfe44572d319cfa99;p=portage.git Make PackagesSystemSet.description refer to the real profile rather than /etc/portage/profile when possible. svn path=/main/trunk/; revision=10561 --- 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