From 50ff107d7fadc8b7165d749ea188ec612976c20e Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Tue, 24 Aug 2010 16:46:59 +0200 Subject: [PATCH] ack-sync: Improve bug-locking and set statuses - In Progress, build, review, Fix Committed, upload. --- ack-sync | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ack-sync b/ack-sync index eef30b2..667afd8 100755 --- a/ack-sync +++ b/ack-sync @@ -187,15 +187,17 @@ def main(bug_numbers, all_package, all_version, all_section, update, task.assignee = launchpad.me print "assigned me" task.lp_save() - elif task.assignee != launchpad.me: + if task.assignee != launchpad.me: print >> sys.stderr, "E: %s is already assigned to https://launchpad.net/bugs/%i" % \ (task.assignee.display_name, bug.id) sys.exit(1) + old_status = task.status + task.status = 'In Progress' unsubscribe_sponsors(launchpad, bug) if task.importance == "Undecided": task.importance = "Wishlist" print "importance set to Wishlist" - task.lp_save() + task.lp_save() if all_package is not None: package = all_package @@ -228,13 +230,14 @@ def main(bug_numbers, all_package, all_version, all_section, update, test_install(dist, dsc_file) print bug.title - print task.status + print '%s (was %s)' % (task.status, old_status) print "Uploader:", uploader_name + " <" + uploader_email + ">" try: raw_input('Press [Enter] to continue or [Ctrl-C] to abort.') except KeyboardInterrupt: continue + task.status = 'Fix Committed' task.assignee = None print "unassigned me" task.lp_save()