summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2014-02-18 16:56:47 -0800
committerBrian Dolbec <dolsen@gentoo.org>2014-02-18 16:58:03 -0800
commit8cc0df2e105ae75edf81fd9133511b8a8edb8815 (patch)
tree03a16dc4d7b6c390fd8f682e1fd9d5f49b48659c
parentf9b0cf555a5178883ab1e817bd801e4a7ff4b83c (diff)
downloadgentoolkit-8cc0df2e105ae75edf81fd9133511b8a8edb8815.tar.gz
revdep_rebuild/analyse.py: Improve LibCheck.search() totals debug output.
-rw-r--r--pym/gentoolkit/revdep_rebuild/analyse.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py
index 5346c3e..d7b210b 100644
--- a/pym/gentoolkit/revdep_rebuild/analyse.py
+++ b/pym/gentoolkit/revdep_rebuild/analyse.py
@@ -140,6 +140,7 @@ class LibCheck(object):
self.pmsg = green(' * ') + bold('Broken files that requires:') + ' %s (%s bits)'
self.setlibs = self._setlibs
self.check = self._checkbroken
+ self.sfmsg = "\tLibCheck.search(); Total found: %(count)d libs, %(deps)d files in %(time)d milliseconds"
self.alllibs = None
@@ -179,6 +180,7 @@ class LibCheck(object):
'''
stime = current_milli_time()
count = 0
+ fcount = 0
if not scanned_files:
scanned_files = self.scanned_files
found_libs = {}
@@ -197,11 +199,12 @@ class LibCheck(object):
except KeyError:
found_libs[bits][l] = set([filename])
count += 1
+ fcount += 1
self.logger.debug("\tLibCheck.search(); FOUND:"
- " %s, %s, %s" % (bits, l, filename))
+ " %sbit, %s, %s" % (bits, l, filename))
ftime = current_milli_time()
- self.logger.debug("\tLibCheck.search(); total libs found: %d in %d milliseconds"
- % (count, ftime-stime))
+ self.logger.debug(self.sfmsg % {'count': count, 'deps': fcount,
+ 'time': ftime-stime})
return found_libs