* [gentoo-commits] portage r15305 - main/trunk/pym/portage
@ 2010-01-31 21:25 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-01-31 21:25 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2010-01-31 21:25:31 +0000 (Sun, 31 Jan 2010)
New Revision: 15305
Modified:
main/trunk/pym/portage/__init__.py
Log:
Validate categories.
Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py 2010-01-31 20:38:18 UTC (rev 15304)
+++ main/trunk/pym/portage/__init__.py 2010-01-31 21:25:31 UTC (rev 15305)
@@ -2102,7 +2102,8 @@
#getting categories from an external file now
categories = [grabfile(os.path.join(x, "categories")) for x in locations]
self.categories = tuple(sorted(
- stack_lists(categories, incremental=1)))
+ x for x in stack_lists(categories, incremental=1)
+ if dbapi._category_re.match(x) is not None))
del categories
archlist = [grabfile(os.path.join(x, "arch.list")) for x in locations]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-31 21:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-31 21:25 [gentoo-commits] portage r15305 - main/trunk/pym/portage Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox