diff options
author | 2023-08-03 16:33:41 +0600 | |
---|---|---|
committer | 2023-08-03 16:33:41 +0600 | |
commit | 70faa8e9a0ff3cba74b4f753e257d56b768fcbd2 (patch) | |
tree | 3a49460715f7319d100e0cc9c1a278758500c7c8 /debian/patches/apport-report.patch | |
download | aptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.tar.gz aptdaemon-70faa8e9a0ff3cba74b4f753e257d56b768fcbd2.zip |
Import Upstream version 1.1.1+bzr982
Diffstat (limited to 'debian/patches/apport-report.patch')
-rw-r--r-- | debian/patches/apport-report.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/apport-report.patch b/debian/patches/apport-report.patch new file mode 100644 index 0000000..c715386 --- /dev/null +++ b/debian/patches/apport-report.patch @@ -0,0 +1,24 @@ +Description: write apport reports the right way +Author: Brian Murray <brian@ubuntu.com> +Origin: vendor +Bug-Ubuntu: http://launchpad.net/bugs/1700810 +Forwarded: not-needed +Last-Update: 2020-05-11 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: aptdaemon-1.1.1+bzr982/aptdaemon/crash.py +=================================================================== +--- aptdaemon-1.1.1+bzr982.orig/aptdaemon/crash.py ++++ aptdaemon-1.1.1+bzr982/aptdaemon/crash.py +@@ -69,9 +69,8 @@ def create_report(error, traceback, tran + uid = os.path.basename(trans.tid) + + # Write report +- report_path = apport.fileutils.make_report_path(report, uid) +- if not os.path.exists(report_path): +- report.write(open(report_path, 'wb')) ++ with apport.fileutils.make_report_file(report, uid) as f: ++ report.write(f) + + if __name__ == "__main__": + apt_pkg.init_config() |