commit f85a40f221ceb26a654ee2c7b73b4b68cafbfb35 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Thu Jun 2 11:58:41 2011 +0200
No need to query bz if we don't show the output
pkgdb.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) --- diff --git a/pkgdb.py b/pkgdb.py index 3e36667..191833c 100755 --- a/pkgdb.py +++ b/pkgdb.py @@ -345,14 +345,14 @@ def get_package_info(packagename, branch=None, pending=False, pkgdbinfo = pkgdbclient.send_request('/acls/name/{0}'.format(packagename), auth=False)
- log.debug("Query bugzilla") - bugbz = bzclient.query( - {'bug_status': ['NEW', 'ASSIGNED', 'NEEDINFO'], - 'component': packagename}) print pkgdbinfo['title'] if 'packageListings' in pkgdbinfo: print pkgdbinfo['packageListings'][0]['package']['summary'] if extra: + log.debug("Query bugzilla") + bugbz = bzclient.query( + {'bug_status': ['NEW', 'ASSIGNED', 'NEEDINFO'], + 'component': packagename}) print "{0} bugs open (new, assigned, needinfo)".format(len(bugbz)) for collection in pkgdbinfo['packageListings']: if branch is None or branch == \
packagedb-cli-commits@lists.stg.fedorahosted.org