add --library output to revdep-rebuild.
authordol-sen <brian.dolbec@gmail.com>
Mon, 10 Oct 2011 16:03:32 +0000 (09:03 -0700)
committerdol-sen <brian.dolbec@gmail.com>
Mon, 10 Oct 2011 16:03:32 +0000 (09:03 -0700)
pym/gentoolkit/revdep_rebuild/analyse.py
pym/gentoolkit/revdep_rebuild/rebuild.py

index f992db0960cebe4b51bcde3be6c958c8bcf0801a..79b8fe35c1bd13cff8ada2ad8cc35847c34405bb 100644 (file)
@@ -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
 
index c8e0b371903523ccd78afa9fb727a951464934ec..fe00069953c6223e99c8c09e5e477b664f26acbd 100644 (file)
@@ -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(