projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a4a9ca
)
Validate categories.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 31 Jan 2010 21:25:31 +0000
(21:25 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 31 Jan 2010 21:25:31 +0000
(21:25 -0000)
svn path=/main/trunk/; revision=15305
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 5608cd93e34377f6be34c2cfe89ff815099b66a4..127babe6017d5c82216529c75594052daf01bc51 100644
(file)
--- 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]