From 0352a0fd4500ed166e48e0e23fbde0421824336e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 3 Sep 2008 02:13:35 +0000 Subject: [PATCH] Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain other sets. svn path=/main/trunk/; revision=11486 --- pym/portage/sets/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,) \ -- 2.26.2