diff -u apport-2.17.2/apport/ui.py apport-2.17.2/apport/ui.py --- apport-2.17.2/apport/ui.py +++ apport-2.17.2/apport/ui.py @@ -1040,12 +1040,15 @@ self.report['UnreportableReason'] = '%s\n\n%s' % ( _('This problem report is damaged and cannot be processed.'), repr(e)) + self.report['_MarkForUpload'] = 'False' except ValueError: # package does not exist self.report['UnreportableReason'] = _('The report belongs to a package that is not installed.') + self.report['_MarkForUpload'] = 'False' except Exception as e: apport.error(repr(e)) self.report['UnreportableReason'] = _('An error occurred while attempting to ' 'process this problem report:') + '\n\n' + str(e) + self.report['_MarkForUpload'] = 'False' if 'UnreportableReason' in self.report or not self.check_report_crashdb(): self.ui_stop_info_collection_progress() diff -u apport-2.17.2/debian/changelog apport-2.17.2/debian/changelog --- apport-2.17.2/debian/changelog +++ apport-2.17.2/debian/changelog @@ -1,3 +1,11 @@ +apport (2.17.2-0ubuntu1.8) vivid-proposed; urgency=medium + + * apport/ui.py: set "_MarkForUpload" field to False for cases where the + apport report is damaged, about a not installed package, or when an + error occurred processing the report. (LP: #1512902) + + -- Brian Murray Thu, 05 Nov 2015 15:27:47 -0800 + apport (2.17.2-0ubuntu1.7) vivid-security; urgency=medium * test_backend_apt_dpkg.py: Reset internal apt caches between tests. Avoids