commit e2527f33327345cffd1b2b7e87d11174180fb69d Author: Pierre-Yves Chibon py@chibon.fr pingou@pingoured.fr Date: Wed Jul 13 13:21:13 2011 +0200
Improve output for orphaned packages/branch
- No need to show old comaintainers when package is orphaned - Highlight when the package is orphaned
pkgdb-cli.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) --- diff --git a/pkgdb-cli.py b/pkgdb-cli.py index 8a7dcef..22c23fd 100755 --- a/pkgdb-cli.py +++ b/pkgdb-cli.py @@ -520,6 +520,9 @@ def get_package_info(packagename, branch=None, pending=False, or branch == "all" \ or branch == collection['collection']['branchname']:
+ owner = collection['owner'] + if collection['owner'] == 'orphan': + owner = red + collection['owner'] + reset # Retrieve ACL information print "{0}{1}{2}{3}Owner:{4}{5}".rstrip().format( red + bold, @@ -529,7 +532,9 @@ def get_package_info(packagename, branch=None, pending=False, len(collection['collection'][ 'branchname'])), " " * 10, - collection['owner']) + owner) + if collection['owner'] == 'orphan': + continue
# print header of the table tmp = " " * 24
packagedb-cli-commits@lists.stg.fedorahosted.org