From 4fd527a67416ea278e450602c2bc73fe97ef06bc Mon Sep 17 00:00:00 2001 From: dol-sen Date: Mon, 10 Oct 2011 09:03:32 -0700 Subject: [PATCH] add --library output to revdep-rebuild. --- pym/gentoolkit/revdep_rebuild/analyse.py | 2 ++ pym/gentoolkit/revdep_rebuild/rebuild.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py index f992db0..79b8fe3 100644 --- a/pym/gentoolkit/revdep_rebuild/analyse.py +++ b/pym/gentoolkit/revdep_rebuild/analyse.py @@ -206,6 +206,8 @@ def analyse(settings, logger, libraries=None, la_libraries=None, for ltc in _libs_to_check: if os.path.isfile(ltc): ltc = scan(['-nBSF', '%S'], [ltc,], settings['CMD_MAX_ARGS'])[0].split()[0] + else: + logger.warn(yellow(' * ') + bold('Library "%s" was not found' % ltc)) nltc += [ltc,] _libs_to_check = nltc diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py index c8e0b37..fe00069 100644 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py @@ -205,6 +205,10 @@ def main(settings=None, logger=None): yellow('You are not root, adding --pretend to portage options')) settings['PRETEND'] = True + if settings['library']: + logger.warn(green(' * ') + + "Looking for libraries: %s" % (bold(', '.join(settings['library'])))) + if settings['USE_TMP_FILES'] \ and check_temp_files(settings['DEFAULT_TMP_DIR'], logger=logger): libraries, la_libraries, libraries_links, binaries = read_cache( -- 2.26.2