Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Sep 2008 02:13:35 +0000 (02:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Sep 2008 02:13:35 +0000 (02:13 -0000)
other sets.

svn path=/main/trunk/; revision=11486

pym/portage/sets/files.py

index d26f29d1db1b2be4553ff79465ed7087ea9e5ee8..e02c1e7b2a3494a287f0a2edd4fd60108938e519 100644 (file)
@@ -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,) \