bodhi/tools/client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit 4e1e46637fd2829872ffa54928fa01e62c0a880e Author: Till Maas opensource@till.name Date: Thu Aug 19 20:42:26 2010 +0200
Use all args to create new updates
Instead of requiring only one arg with a comma separated list of updates, support several builds as several args. This allows to easily specify several updates using bash expansion: bodhi -n -b -t newpackage mspdebug-0.10-2.fc1{2..4}
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py index b5b5549..8488263 100755 --- a/bodhi/tools/client.py +++ b/bodhi/tools/client.py @@ -41,7 +41,7 @@ except: log = logging.getLogger(__name__)
def get_parser(): - usage = "usage: %prog [options] [build|package]" + usage = "usage: %prog [options] [build...|package]" parser = OptionParser(usage, description=__description__, version=__version__)
@@ -170,9 +170,9 @@ def main(): print(bodhi.update_str(update).encode("UTF-8"))
else: - verify_args(args) + builds = ",".join(args) extra_args = { - 'builds': args[0], + 'builds': builds, 'type_': opts.type_, 'bugs': opts.bugs, 'notes': opts.notes, @@ -181,7 +181,7 @@ def main(): if not extra_args['type_']: log.error("Error: No update type specified (ie: -t bugfix)") sys.exit(-1) - log.info("Creating a new update for %s" % args[0]) + log.info("Creating a new update for %s" % builds) data = bodhi.save(**extra_args) if data.get('tg_flash'): log.info(data['tg_flash'])
commit a749a4c164c4d729c1d83ab128163642ab6cd368 Author: Till Maas opensource@till.name Date: Thu Aug 19 20:33:40 2010 +0200
Update version in client to 0.7.8
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py index 7df1957..b5b5549 100755 --- a/bodhi/tools/client.py +++ b/bodhi/tools/client.py @@ -15,7 +15,7 @@ # Copyright 2007-2010 Red Hat, Inc # Authors: Luke Macken lmacken@redhat.com
-__version__ = '0.7.0' +__version__ = '0.7.8' __description__ = 'Command line tool for interacting with Bodhi'
import sys
commit 0d7e114dd698b5535b656b5e8cd2a1e31724a756 Author: Till Maas opensource@till.name Date: Thu Aug 19 20:32:34 2010 +0200
Update current Fedora releases in client helptext
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py index 838b767..7df1957 100755 --- a/bodhi/tools/client.py +++ b/bodhi/tools/client.py @@ -105,7 +105,7 @@ def get_parser(): dest="bugs", help="Specify any number of Bugzilla IDs " "(--bugs=1234,5678)", default="") parser.add_option("-r", "--release", action="store", type="string", - dest="release", help="Specify a release [F8|F9|F10] (optional)") + dest="release", help="Specify a release [F12|F13|F14] (optional)") parser.add_option("-N", "--notes", action="store", type="string", dest="notes", help="Update notes", default="") parser.add_option("-t", "--type", action="store", type="string",