summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-31 21:25:31 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-31 21:25:31 +0000
commita11f540c7243e94c547c8acc4cb30039c6432050 (patch)
treef4099f438be43b6ad618a456353ffa24dd494724
parent3a4a9cad036abf3f011b223fd6fb2fdf9649e213 (diff)
downloadportage-a11f540c7243e94c547c8acc4cb30039c6432050.tar.gz
portage-a11f540c7243e94c547c8acc4cb30039c6432050.tar.bz2
portage-a11f540c7243e94c547c8acc4cb30039c6432050.zip
Validate categories.
svn path=/main/trunk/; revision=15305
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 5608cd93e..127babe60 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2102,7 +2102,8 @@ class config(object):
#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]