Merge pull request #954 from mwhudson/no-apport-hooks-in-dry-run-mode
do not run most apport hooks in dry-run mode
This commit is contained in:
commit
3cbcddb651
|
@ -135,8 +135,9 @@ class ErrorReport(metaclass=urwid.MetaSignals):
|
||||||
# Add basic info to report.
|
# Add basic info to report.
|
||||||
self.pr.add_proc_info()
|
self.pr.add_proc_info()
|
||||||
self.pr.add_os_info()
|
self.pr.add_os_info()
|
||||||
self.pr.add_hooks_info(None)
|
if not self.reporter.dry_run:
|
||||||
apport.hookutils.attach_hardware(self.pr)
|
self.pr.add_hooks_info(None)
|
||||||
|
apport.hookutils.attach_hardware(self.pr)
|
||||||
# Because apport-cli will in general be run on a different
|
# Because apport-cli will in general be run on a different
|
||||||
# machine, we make some slightly obscure alterations to the report
|
# machine, we make some slightly obscure alterations to the report
|
||||||
# to make this go better.
|
# to make this go better.
|
||||||
|
|
Loading…
Reference in New Issue