1 |
commit: 2d303c857523978de043c0844f213567113feda5 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 2 17:46:28 2012 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Mar 2 17:46:28 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2d303c85 |
7 |
|
8 |
fix bug 406613. ignore any .keep_* files in /var/db/pkg. Print a warning for any other files found. |
9 |
|
10 |
--- |
11 |
pym/gentoolkit/revdep_rebuild/assign.py | 5 +++++ |
12 |
1 files changed, 5 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/pym/gentoolkit/revdep_rebuild/assign.py b/pym/gentoolkit/revdep_rebuild/assign.py |
15 |
index af82b27..73f20a9 100644 |
16 |
--- a/pym/gentoolkit/revdep_rebuild/assign.py |
17 |
+++ b/pym/gentoolkit/revdep_rebuild/assign.py |
18 |
@@ -21,6 +21,11 @@ def assign_packages(broken, logger, settings): |
19 |
''' |
20 |
assigned = set() |
21 |
for group in os.listdir(settings['PKG_DIR']): |
22 |
+ if os.path.isfile(settings['PKG_DIR'] + group): |
23 |
+ if not group.startswith('.keep_'): |
24 |
+ logger.warn(yellow(" * Invalid category found in the installed pkg db: ") + |
25 |
+ bold(settings['PKG_DIR'] + group)) |
26 |
+ continue |
27 |
for pkg in os.listdir(settings['PKG_DIR'] + group): |
28 |
_file = settings['PKG_DIR'] + group + '/' + pkg + '/CONTENTS' |
29 |
if os.path.exists(_file): |