only add short names for sets if they begin with 'sets/'
authorMarius Mauch <genone@gentoo.org>
Fri, 5 Oct 2007 19:34:21 +0000 (19:34 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 5 Oct 2007 19:34:21 +0000 (19:34 -0000)
svn path=/main/trunk/; revision=7957

pym/portage/sets/__init__.py

index c65cd8f89a9f25c7b338105657ff4bd4bdec6ca6..481fa8b7abb2e4139e7e97c69bee03f234de8aad 100644 (file)
@@ -232,7 +232,7 @@ class SetConfig(SafeConfigParser):
                shortnames = {}
                for name in self.psets:
                        mysplit = name.split("/")
-                       if len(mysplit) > 1 and mysplit[-1] != "":
+                       if len(mysplit) > 1 and mysplit[0] == "sets" and mysplit[-1] != "":
                                if mysplit[-1] in shortnames:
                                        del shortnames[mysplit[-1]]
                                else: