bodhi/model.py | 3 ++- bodhi/tools/client.py | 2 +- docs/bodhi.1 | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-)
New commits: commit b631791a4360c509bf11f90a6175420eb6a80322 Author: Luke Macken lmacken@redhat.com Date: Tue Aug 10 14:59:47 2010 -0400
Document the `newpackage` update type (#621828)
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py index 61c45e3..8f8b490 100755 --- a/bodhi/tools/client.py +++ b/bodhi/tools/client.py @@ -108,7 +108,7 @@ def get_parser(): parser.add_option("-N", "--notes", action="store", type="string", dest="notes", help="Update notes", default="") parser.add_option("-t", "--type", action="store", type="string", - help="Update type [bugfix|security|enhancement]", + help="Update type [bugfix|security|enhancement|newpackage]", dest="type_", metavar="TYPE") parser.add_option("-u", "--username", action="store", type="string", dest="username", default=getuser(), diff --git a/docs/bodhi.1 b/docs/bodhi.1 index e28fc58..0947350 100644 --- a/docs/bodhi.1 +++ b/docs/bodhi.1 @@ -22,7 +22,7 @@ Specify a release [F7|F8] .IP "\fB-N --notes\fP NOTES" Update notes .IP "\fB-t --type\fP TYPE" -Update type [bugfix|security|enhancement] +Update type [bugfix|security|enhancement|newpackage] .IP "\fB-u --username\fP USERNAME" Login username for bodhi .IP "\fB-d --delete\fP"
commit b2c8ab24f9813920cf74e0fb1faba3bd5456e8cd Author: Luke Macken lmacken@redhat.com Date: Tue Aug 10 14:59:37 2010 -0400
Only set bugs to ON_QA if they aren't already ON_QA
diff --git a/bodhi/model.py b/bodhi/model.py index ae30713..65f8ec3 100644 --- a/bodhi/model.py +++ b/bodhi/model.py @@ -1226,7 +1226,8 @@ class Bugzilla(SQLObject): if bug.product not in config.get('bz_products', '').split(','): log.warning("Skipping %r bug" % bug.product) return - bug.setstatus('ON_QA', comment=comment) + if bug.bug_status != 'ON_QA': + bug.setstatus('ON_QA', comment=comment) except Exception, e: log.error("Unable to alter bug #%d\n%s" % (self.bz_id, str(e))) else: