summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-10-05 19:34:21 +0000
committerMarius Mauch <genone@gentoo.org>2007-10-05 19:34:21 +0000
commit41586dcf1bc6b95cb1280eeb505dfe4d0558a142 (patch)
tree52c0522d4b79db0a54d31daef68af4aa61a7296b
parentbb687e9ae0748118c6040bcdae8d1343a7d7c877 (diff)
downloadportage-41586dcf1bc6b95cb1280eeb505dfe4d0558a142.tar.gz
portage-41586dcf1bc6b95cb1280eeb505dfe4d0558a142.tar.bz2
portage-41586dcf1bc6b95cb1280eeb505dfe4d0558a142.zip
only add short names for sets if they begin with 'sets/'
svn path=/main/trunk/; revision=7957
-rw-r--r--pym/portage/sets/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py
index c65cd8f89..481fa8b7a 100644
--- a/pym/portage/sets/__init__.py
+++ b/pym/portage/sets/__init__.py
@@ -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: