Merge lp:~bjornt/landscape-client/disable-apport-dpkg-crash into lp:~landscape/landscape-client/trunk
Proposed by
Björn Tillenius
Status: | Merged |
---|---|
Approved by: | Jerry Seutter |
Approved revision: | 589 |
Merged at revision: | 589 |
Proposed branch: | lp:~bjornt/landscape-client/disable-apport-dpkg-crash |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
138 lines (+84/-2) 2 files modified
landscape/package/facade.py (+28/-0) landscape/package/tests/test_facade.py (+56/-2) |
To merge this branch: | bzr merge lp:~bjornt/landscape-client/disable-apport-dpkg-crash |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jerry Seutter (community) | Approve | ||
Chris Glass (community) | Approve | ||
Review via email: mp+135153@code.launchpad.net |
Description of the change
Prevent Apport from generating crash reports when dpkg returns an error.
When dpkg returns an error, a SystemError is raised and the error is
being caught and cleaned up in the Apt C binding. However, the Apport
hook was still being executed, generating a crash reports, even though
nothing crashed.
Now we install a custom excepthook, which passes all errors to Apport,
except for SystemErrrors. We install the excepthook only in the child
process that executes dpkg after a fork.
To post a comment you must log in.
Looks good! +1