entropy.db.regenerateDependsTable: when running with output = True,

print output every 150 iterations and don't spam the terminal
This commit is contained in:
Fabio Erculiani
2009-04-02 20:37:02 +02:00
parent a2a4c3dd2e
commit 62f09809ed
+3 -1
View File
@@ -4341,7 +4341,9 @@ class LocalRepository:
up = self.updateProgress
for iddep, atom in depends:
count += 1
if output:
if output and ((count == 0) or (count % 150 == 0) or \
(count == total)):
up( red("Resolving %s") % (atom,), importance = 0,
type = "info", back = True, count = (count, total)
)