]> git.saurik.com Git - apt.git/commitdiff
Do not (re)start "apt-daily.system"
authorMichael Vogt <mvo@ubuntu.com>
Wed, 9 Nov 2016 14:09:44 +0000 (15:09 +0100)
committerMichael Vogt <mvo@ubuntu.com>
Wed, 9 Nov 2016 15:00:17 +0000 (16:00 +0100)
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

debian/rules

index 2f1ea45fceeec240585953975fb10707ee1628af..62d913f0aafe29d2b2ab5913054fbc67c5e88f39 100755 (executable)
@@ -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