commit cdfe84810de02b627d5077c7a69bbd9bc7daa74a Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Wed Mar 5 17:36:16 2014 +0100
Adjust the CLI to the API
pkgdb2-cli | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) --- diff --git a/pkgdb2-cli b/pkgdb2-cli index d8b396c..e1b4c5f 100755 --- a/pkgdb2-cli +++ b/pkgdb2-cli @@ -257,7 +257,7 @@ def setup_parser(): default=False, dest='eol', help="List all orphaned and eol'd packages") parser_list.add_argument( - '--user', dest='user', default=False, + '--user', dest='user', default=None, help="List all the packages of the user <user>") parser_list.add_argument( '--branch', dest='branch', default=None, @@ -444,7 +444,7 @@ def do_list(args): log.info("user : {0}".format(args.user)) log.info("name only: {0}".format(args.name_only)) log.info("branch : {0}".format(args.branch)) - log.info(args) + pattern = args.pattern if not pattern or args.all: pattern = '*' @@ -456,9 +456,9 @@ def do_list(args):
output = pkgdbclient.get_packages( pattern=pattern, - branch=args.branch, + branches=args.branch, poc=args.user, - orphan=args.orphaned + orphaned=args.orphaned ) cnt = 0 for pkg in sorted(output['packages'], key = lambda pkg: (pkg['name'])):
packagedb-cli-commits@lists.stg.fedorahosted.org