summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2016-11-09 15:09:44 +0100
committerJulian Andres Klode <jak@debian.org>2016-12-14 20:25:07 +0100
commit55bf597f0cbaa52013f0f01de7b5fd5b4e07f2aa (patch)
tree34535a09566e0baa9d22a008e20d17a2080a176e /debian/rules
parent210766ec5a6f996398235fe2230f7aeac781ccba (diff)
Do not (re)start "apt-daily.system"
This unit runs unattended-upgrades. If apt itself is part of the upgrade a restart of the unit will kill unattended-upgrades. This will lead to an inconsistent dpkg status. Closes: #841763 Thanks: Alexandre Detiste (cherry picked from commit e133bb5e81b10bf059b3abeab2d9e41f7206e446) LP: #1649959
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 2f1ea45fc..62d913f0a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,11 @@ override_dh_gencontrol:
override_dh_installcron:
dh_installcron --name=apt-compat
+override_dh_systemd_start:
+ # Do not restart "apt-daily.service" because this script runs
+ # unattended-upgrades. So if apt itself is upgraded as part of
+ # an unattended-upgrades run it would kill itself
+ dh_systemd_start apt-daily.timer
override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
override_dh_auto_configure-indep: flags=-DWITH_DOC=ON