Fix formatting in process_bugs.py output
The recent changes to use print() instead of print mean we started having more newlines, which in turn means the output is much longer than it used to be. Restore the same formatting, and fix some prints that didn't have the () so weren't being called. Change-Id: I55f8c8bfe899bc0bb57cdf4f4a4b49ffd146ff94
This commit is contained in:
parent
c2460263fd
commit
bb7139f047
|
@ -78,33 +78,33 @@ while changes:
|
|||
if (not args.milestone) and (args.settarget and b.milestone):
|
||||
if b.milestone.name != args.settarget:
|
||||
continue
|
||||
print(bug.id)
|
||||
print(bug.id, end='')
|
||||
if bug.id in args.exceptions:
|
||||
print(" - excepted")
|
||||
continue
|
||||
if args.settarget:
|
||||
if b.milestone != to_milestone:
|
||||
b.milestone = to_milestone
|
||||
print(" - milestoned",)
|
||||
print(" - milestoned", end='')
|
||||
else:
|
||||
print(" - milestone already set",)
|
||||
print(" - milestone already set", end='')
|
||||
if args.fixrelease:
|
||||
print(" - fixreleased",)
|
||||
print(" - fixreleased", end='')
|
||||
b.status = 'Fix Released'
|
||||
try:
|
||||
b.lp_save()
|
||||
if (args.settarget and not b.milestone) or args.fixrelease:
|
||||
changes = True
|
||||
except ServerError as e:
|
||||
print(" - TIMEOUT during save !",)
|
||||
print(" - TIMEOUT during save !", end='')
|
||||
failed.add(bug.id)
|
||||
except Exception as e:
|
||||
print(" - ERROR during save ! (%s)" % e,)
|
||||
print(" - ERROR during save ! (%s)" % e, end='')
|
||||
failed.add(bug.id)
|
||||
print
|
||||
print()
|
||||
|
||||
if failed:
|
||||
print
|
||||
print()
|
||||
print("Some bugs could not be automatically updated due to LP timeouts:")
|
||||
for bugid in failed:
|
||||
print("http://bugs.launchpad.net/bugs/%d" % bugid)
|
||||
|
|
Loading…
Reference in New Issue