commit e30b20e74646336936c0491411fa3b98656d34e7
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Mon Nov 14 09:38:38 2011 +0100
Extend the fix of name_only
Won't print Total X packages for list --user command and orphan action
pkgdb-cli.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pkgdb-cli.py b/pkgdb-cli.py
index 59a2905..c3e5afa 100755
--- a/pkgdb-cli.py
+++ b/pkgdb-cli.py
@@ -490,7 +490,8 @@ def get_orphaned_packages(motif=None, eol=False, name_only=False,
if branch == 'all' or branch in branches:
print out, "[" + "],[".join(branches) + "]"
cnt = cnt + 1
- print 'Total: {0} packages'.format(cnt)
+ if not name_only:
+ print 'Total: {0} packages'.format(cnt)
def get_packager_info(packager, motif="", output=True, name_only=False,
@@ -551,7 +552,7 @@ def get_packager_info(packager, motif="", output=True, name_only=False,
if branch == 'all' or branch in branches:
print out
cnt = cnt + 1
- if output:
+ if output and not name_only:
print "Total: {0} packages".format(cnt)
return pkgs