Merge lp:~brian-murray/apport/mark_upload into lp:~apport-hackers/apport/trunk

Proposed by Brian Murray
Status: Merged
Merged at revision: 2455
Proposed branch: lp:~brian-murray/apport/mark_upload
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 22 lines (+3/-2)
1 file modified
apport/ui.py (+3/-2)
To merge this branch: bzr merge lp:~brian-murray/apport/mark_upload
Reviewer Review Type Date Requested Status
Apport upstream developers Pending
Review via email: mp+119815@code.launchpad.net

Description of the change

As documented in bug 1020994 I discovered that whoopsie will sometimes upload an incomplete crash report and that this can happen because apport hasn't always finished running collect_info when the upload file is created.

I've already uploaded this fix to ubuntu in apport version 2.4-0ubuntu7.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'apport/ui.py'
--- apport/ui.py 2012-07-18 10:15:24 +0000
+++ apport/ui.py 2012-08-16 00:09:27 +0000
@@ -242,7 +242,9 @@
242 response = self.ui_present_report_details(allowed_to_report)242 response = self.ui_present_report_details(allowed_to_report)
243 if response['report'] or response['examine']:243 if response['report'] or response['examine']:
244 try:244 try:
245 if 'Dependencies' not in self.report:245 if 'Dependencies' not in self.report and response['report']:
246 self.collect_info(on_finished=apport.fileutils.mark_report_upload(report_file))
247 elif 'Dependencies' not in self.report:
246 self.collect_info()248 self.collect_info()
247 except (IOError, zlib.error) as e:249 except (IOError, zlib.error) as e:
248 # can happen with broken core dumps250 # can happen with broken core dumps
@@ -280,7 +282,6 @@
280 if not response['report']:282 if not response['report']:
281 return283 return
282284
283 apport.fileutils.mark_report_upload(report_file)
284 # We check for duplicates and unreportable crashes here, rather285 # We check for duplicates and unreportable crashes here, rather
285 # than before we show the dialog, as we want to submit these to the286 # than before we show the dialog, as we want to submit these to the
286 # crash database, but not Launchpad.287 # crash database, but not Launchpad.

Subscribers

People subscribed via source and target branches