aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-03-02 17:46:28 (GMT)
committerBrian Dolbec <dolsen@gentoo.org>2012-03-02 17:46:28 (GMT)
commit2d303c857523978de043c0844f213567113feda5 (patch)
tree057e2de2241dce3bf93ecaaff729a298c73b7c5a
parentfix bug 406495. renamed portage.config() parameter from _eprefix to eprefix. (diff)
downloadgentoolkit-2d303c857523978de043c0844f213567113feda5.zip
gentoolkit-2d303c857523978de043c0844f213567113feda5.tar.gz
gentoolkit-2d303c857523978de043c0844f213567113feda5.tar.bz2
fix bug 406613. ignore any .keep_* files in /var/db/pkg. Print a warning for any other files found.
-rw-r--r--pym/gentoolkit/revdep_rebuild/assign.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/gentoolkit/revdep_rebuild/assign.py b/pym/gentoolkit/revdep_rebuild/assign.py
index af82b27..73f20a9 100644
--- a/pym/gentoolkit/revdep_rebuild/assign.py
+++ b/pym/gentoolkit/revdep_rebuild/assign.py
@@ -21,6 +21,11 @@ def assign_packages(broken, logger, settings):
'''
assigned = set()
for group in os.listdir(settings['PKG_DIR']):
+ if os.path.isfile(settings['PKG_DIR'] + group):
+ if not group.startswith('.keep_'):
+ logger.warn(yellow(" * Invalid category found in the installed pkg db: ") +
+ bold(settings['PKG_DIR'] + group))
+ continue
for pkg in os.listdir(settings['PKG_DIR'] + group):
_file = settings['PKG_DIR'] + group + '/' + pkg + '/CONTENTS'
if os.path.exists(_file):