ack-sync: Improve bug-locking and set statuses - In Progress, build, review, Fix Committed, upload.

This commit is contained in:
Stefano Rivera 2010-08-24 16:46:59 +02:00
parent 1c84ef2f93
commit 50ff107d7f

View File

@ -187,10 +187,12 @@ def main(bug_numbers, all_package, all_version, all_section, update,
task.assignee = launchpad.me task.assignee = launchpad.me
print "assigned me" print "assigned me"
task.lp_save() 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" % \ print >> sys.stderr, "E: %s is already assigned to https://launchpad.net/bugs/%i" % \
(task.assignee.display_name, bug.id) (task.assignee.display_name, bug.id)
sys.exit(1) sys.exit(1)
old_status = task.status
task.status = 'In Progress'
unsubscribe_sponsors(launchpad, bug) unsubscribe_sponsors(launchpad, bug)
if task.importance == "Undecided": if task.importance == "Undecided":
task.importance = "Wishlist" task.importance = "Wishlist"
@ -228,13 +230,14 @@ def main(bug_numbers, all_package, all_version, all_section, update,
test_install(dist, dsc_file) test_install(dist, dsc_file)
print bug.title print bug.title
print task.status print '%s (was %s)' % (task.status, old_status)
print "Uploader:", uploader_name + " <" + uploader_email + ">" print "Uploader:", uploader_name + " <" + uploader_email + ">"
try: try:
raw_input('Press [Enter] to continue or [Ctrl-C] to abort.') raw_input('Press [Enter] to continue or [Ctrl-C] to abort.')
except KeyboardInterrupt: except KeyboardInterrupt:
continue continue
task.status = 'Fix Committed'
task.assignee = None task.assignee = None
print "unassigned me" print "unassigned me"
task.lp_save() task.lp_save()