From 3bf7f10b537b7814a4f48a2d3bbf444de364ba70 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Wed, 14 May 2008 20:16:05 +0100 Subject: [PATCH] Fix bug in requestsync causing corruption when bug text was edited for a second or subsequent time. Tuple returned by edit_report was not being unpacked as it needed to be. --- requestsync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requestsync b/requestsync index e489470..1ff15af 100755 --- a/requestsync +++ b/requestsync @@ -418,21 +418,21 @@ if __name__ == '__main__': report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n' if need_interaction: - report = edit_report(title, report, changes_required=True) + (_, bug_text) = 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, report): + if post_bug(srcpkg, subscribe, mapping[status], title, bug_text): 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, report, keyid): + if mail_bug(srcpkg, subscribe, status, title, bug_text, keyid): sys.exit(0) print 'Something went wrong. No sync request filed.'