Merge lp:~brian-murray/unattended-upgrades/package-hook into lp:unattended-upgrades

Proposed by Brian Murray
Status: Merged
Merged at revision: 306
Proposed branch: lp:~brian-murray/unattended-upgrades/package-hook
Merge into: lp:unattended-upgrades
Diff against target: 59 lines (+28/-1)
3 files modified
debian/changelog (+4/-0)
debian/source_unattended-upgrades.py (+21/-0)
setup.py (+3/-1)
To merge this branch: bzr merge lp:~brian-murray/unattended-upgrades/package-hook
Reviewer Review Type Date Requested Status
Michael Vogt Pending
unattended-upgrades-developers Pending
Review via email: mp+215032@code.launchpad.net

Description of the change

I've added in apport package hook for the unattended-upgrades package.

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 'debian/changelog'
2--- debian/changelog 2014-04-08 14:05:32 +0000
3+++ debian/changelog 2014-04-09 20:24:17 +0000
4@@ -1,10 +1,14 @@
5 unattended-upgrades (0.82.6) unstable; urgency=medium
6
7+ [ Michael Vogt ]
8 * unattended-upgrades, test/test_rewind.py:
9 - fix regression in rewind_cache() and add test (closes: 743594)
10 * unattended-upgrade:
11 - ensure minimal-upgrades-modes does not truncate dpkg output log
12
13+ [ Brian Murray ]
14+ * add in an apport package hook (LP: #1078386)
15+
16 -- Michael Vogt <mvo@debian.org> Tue, 08 Apr 2014 16:05:23 +0200
17
18 unattended-upgrades (0.82.5) unstable; urgency=low
19
20=== added file 'debian/source_unattended-upgrades.py'
21--- debian/source_unattended-upgrades.py 1970-01-01 00:00:00 +0000
22+++ debian/source_unattended-upgrades.py 2014-04-09 20:24:17 +0000
23@@ -0,0 +1,21 @@
24+"""
25+unattended-upgrades apport hook
26+
27+Collects the following log file:
28+ - /var/log/unattended-upgrades/unattended-upgrades
29+Check to see if either of these conffiles has been modified:
30+ - /etc/apt/apt.conf.d/50unattended-upgrades
31+ - /etc/apt/apt.conf.d/10periodic
32+"""
33+
34+from apport.hookutils import (
35+ attach_conffiles,
36+ attach_file_if_exists)
37+
38+
39+def add_info(report, ui):
40+ # always attach these files
41+ attach_conffiles(report, 'unattended-upgrades', ui=ui)
42+ attach_conffiles(report, 'update-notifier-common', ui=ui)
43+ attach_file_if_exists(report,
44+ '/var/log/unattended-upgrades/unattended-upgrades')
45
46=== modified file 'setup.py'
47--- setup.py 2013-09-12 20:20:14 +0000
48+++ setup.py 2014-04-09 20:24:17 +0000
49@@ -23,7 +23,9 @@
50 ('../usr/share/man/man8/',
51 ["man/unattended-upgrade.8"]),
52 ('../etc/pm/sleep.d/',
53- ["pm/sleep.d/10_unattended-upgrades-hibernate"])
54+ ["pm/sleep.d/10_unattended-upgrades-hibernate"]),
55+ ('../usr/share/apport/package-hooks/',
56+ ["debian/source_unattended-upgrades.py"])
57 ],
58 cmdclass={"build": build_extra.build_extra,
59 "build_i18n": build_i18n.build_i18n},

Subscribers

People subscribed via source and target branches