diff options
| author | Brian Dolbec <dolsen@gentoo.org> | 2012-03-02 09:46:28 -0800 |
|---|---|---|
| committer | Brian Dolbec <dolsen@gentoo.org> | 2012-03-02 09:46:28 -0800 |
| commit | 2d303c857523978de043c0844f213567113feda5 (patch) | |
| tree | 057e2de2241dce3bf93ecaaff729a298c73b7c5a | |
| parent | 4ee500e06ca5625b48ec22e1ba431b191423f6e7 (diff) | |
| download | gentoolkit-2d303c857523978de043c0844f213567113feda5.tar.gz | |
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.py | 5 |
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): |
