Commits

Michał Górny committed 298919e

Print complete live package count as well.

Comments (0)

Files changed (1)

smartliverebuild/core.py

 
 			processes = []
 
+			all_count = [0]
 			packages = []
 			erraneous = []
 			cache = {}
 							needsleep = False
 							if ret:
 								packages.append(vcs.cpv)
+							all_count[0] += 1
 							del processes[i]
 					except KeyboardInterrupt:
 						raise
 		subprocess.Popen(cmd, stdout=sys.stderr).wait()
 
 	if len(packages) < 1:
-		out.result('No updates found')
+		out.result('No updates found (in %s%d%s live packages)'
+				% (out.white, all_count[0], out.s1reset))
 	else:
-		out.result('Found %s%d%s packages to rebuild.' % (out.white, len(packages), out.s1reset))
+		out.result('Found %s%d%s packages to rebuild (out of %s%d%s live packages).'
+				% (out.white, len(packages), out.s1reset,
+					out.white, all_count[0], out.s1reset))
 
 	return packages