mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Fix bug when requesting sync of packages with no ubuntu changes - get rid of bug_text variable and now just use the name report all the time.
This commit is contained in:
parent
45f2d5146c
commit
d89e38e42b
@ -419,21 +419,21 @@ if __name__ == '__main__':
|
||||
report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n'
|
||||
|
||||
if need_interaction:
|
||||
(_, bug_text) = edit_report(title, report, changes_required=True)
|
||||
(_, report) = edit_report(title, report, changes_required=True)
|
||||
|
||||
# Post sync request using Launchpad interface:
|
||||
srcpkg = not newsource and srcpkg or None
|
||||
if use_lp_bugs:
|
||||
# Map status to the values expected by lp-bugs
|
||||
mapping = {'new': 'New', 'confirmed': 'Confirmed'}
|
||||
if post_bug(srcpkg, subscribe, mapping[status], title, bug_text):
|
||||
if post_bug(srcpkg, subscribe, mapping[status], title, report):
|
||||
sys.exit(0)
|
||||
# Abort on error:
|
||||
print 'Something went wrong. No sync request filed.'
|
||||
sys.exit(1)
|
||||
|
||||
# Mail sync request:
|
||||
if mail_bug(srcpkg, subscribe, status, title, bug_text, keyid):
|
||||
if mail_bug(srcpkg, subscribe, status, title, report, keyid):
|
||||
sys.exit(0)
|
||||
|
||||
print 'Something went wrong. No sync request filed.'
|
||||
|
Loading…
x
Reference in New Issue
Block a user