From 5e98adc32dfc597e53d0eb3bfe44572d319cfa99 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 3 Jun 2008 20:44:29 +0000 Subject: Make PackagesSystemSet.description refer to the real profile rather than /etc/portage/profile when possible. svn path=/main/trunk/; revision=10561 --- pym/portage/sets/profiles.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-1-g7c22