Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11486 - main/trunk/pym/portage/sets
Date: Wed, 03 Sep 2008 02:13:40
Message-Id: E1KahsH-0005ON-Qy@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-09-03 02:13:35 +0000 (Wed, 03 Sep 2008)
3 New Revision: 11486
4
5 Modified:
6 main/trunk/pym/portage/sets/files.py
7 Log:
8 Adjust StaticFileSet._validate() to allow set tokens, so that sets can contain
9 other sets.
10
11
12 Modified: main/trunk/pym/portage/sets/files.py
13 ===================================================================
14 --- main/trunk/pym/portage/sets/files.py 2008-09-01 19:32:26 UTC (rev 11485)
15 +++ main/trunk/pym/portage/sets/files.py 2008-09-03 02:13:35 UTC (rev 11486)
16 @@ -56,7 +56,7 @@
17 setattr(self, key, " ".join(value))
18
19 def _validate(self, atom):
20 - return ValidAtomValidator(atom)
21 + return bool(atom[:1] == SETPREFIX or ValidAtomValidator(atom))
22
23 def write(self):
24 write_atomic(self._filename, "".join("%s\n" % (atom,) \