1 |
Author: zmedico |
2 |
Date: 2010-01-31 21:25:31 +0000 (Sun, 31 Jan 2010) |
3 |
New Revision: 15305 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/__init__.py |
7 |
Log: |
8 |
Validate categories. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/__init__.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/__init__.py 2010-01-31 20:38:18 UTC (rev 15304) |
14 |
+++ main/trunk/pym/portage/__init__.py 2010-01-31 21:25:31 UTC (rev 15305) |
15 |
@@ -2102,7 +2102,8 @@ |
16 |
#getting categories from an external file now |
17 |
categories = [grabfile(os.path.join(x, "categories")) for x in locations] |
18 |
self.categories = tuple(sorted( |
19 |
- stack_lists(categories, incremental=1))) |
20 |
+ x for x in stack_lists(categories, incremental=1) |
21 |
+ if dbapi._category_re.match(x) is not None)) |
22 |
del categories |
23 |
|
24 |
archlist = [grabfile(os.path.join(x, "arch.list")) for x in locations] |