From: Zac Medico Date: Wed, 3 Sep 2008 02:13:35 +0000 (-0000) Subject: Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain X-Git-Tag: v2.2_rc9~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0352a0fd4500ed166e48e0e23fbde0421824336e;p=portage.git Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain other sets. svn path=/main/trunk/; revision=11486 --- diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py index d26f29d1d..e02c1e7b2 100644 --- a/pym/portage/sets/files.py +++ b/pym/portage/sets/files.py @@ -56,7 +56,7 @@ class StaticFileSet(EditablePackageSet): setattr(self, key, " ".join(value)) def _validate(self, atom): - return ValidAtomValidator(atom) + return bool(atom[:1] == SETPREFIX or ValidAtomValidator(atom)) def write(self): write_atomic(self._filename, "".join("%s\n" % (atom,) \