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
1=== modified file 'apport/ui.py'
2--- apport/ui.py 2012-07-18 10:15:24 +0000
3+++ apport/ui.py 2012-08-16 00:09:27 +0000
4@@ -242,7 +242,9 @@
5 response = self.ui_present_report_details(allowed_to_report)
6 if response['report'] or response['examine']:
7 try:
8- if 'Dependencies' not in self.report:
9+ if 'Dependencies' not in self.report and response['report']:
10+ self.collect_info(on_finished=apport.fileutils.mark_report_upload(report_file))
11+ elif 'Dependencies' not in self.report:
12 self.collect_info()
13 except (IOError, zlib.error) as e:
14 # can happen with broken core dumps
15@@ -280,7 +282,6 @@
16 if not response['report']:
17 return
18
19- apport.fileutils.mark_report_upload(report_file)
20 # We check for duplicates and unreportable crashes here, rather
21 # than before we show the dialog, as we want to submit these to the
22 # crash database, but not Launchpad.

Subscribers

People subscribed via source and target branches