From: Marius Mauch Date: Fri, 5 Oct 2007 19:34:21 +0000 (-0000) Subject: only add short names for sets if they begin with 'sets/' X-Git-Tag: v2.2_pre1~715 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=41586dcf1bc6b95cb1280eeb505dfe4d0558a142;p=portage.git only add short names for sets if they begin with 'sets/' svn path=/main/trunk/; revision=7957 --- 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: