summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-09-03 02:13:35 +0000
committerZac Medico <zmedico@gentoo.org>2008-09-03 02:13:35 +0000
commit0352a0fd4500ed166e48e0e23fbde0421824336e (patch)
tree9aea6d8dba4bcf34d82864d387d30a0a1ec86822
parentb5777ba47fa650a1f8be6f0c10f6dbcb9999e1a7 (diff)
downloadportage-0352a0fd4500ed166e48e0e23fbde0421824336e.tar.gz
portage-0352a0fd4500ed166e48e0e23fbde0421824336e.tar.bz2
portage-0352a0fd4500ed166e48e0e23fbde0421824336e.zip
Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain
other sets. svn path=/main/trunk/; revision=11486
-rw-r--r--pym/portage/sets/files.py2
1 files changed, 1 insertions, 1 deletions
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,) \