summaryrefslogtreecommitdiff
path: root/debian/apt.systemd.daily
diff options
context:
space:
mode:
authorPaul Wise <pabs@debian.org>2017-04-07 08:18:17 +0800
committerJulian Andres Klode <jak@debian.org>2017-07-12 15:26:45 +0200
commitca90c388045b4498fe32e706bd1bdcf7a6ac8e17 (patch)
tree449b1c2f4b4582cccbedcd36955838f127136006 /debian/apt.systemd.daily
parent11f92b12dbd029fa93618bc5f23cba18e794a132 (diff)
Support zero delay for the various APT::Periodic activities
[squashed:] apt.systemd.daily: check_stamp: check for 'always' before numerical values Prevents a crash when the configuration actually uses 'always': apt.systemd.daily: 402: [: Illegal number: always
Diffstat (limited to 'debian/apt.systemd.daily')
-rwxr-xr-xdebian/apt.systemd.daily6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/apt.systemd.daily b/debian/apt.systemd.daily
index 49af931bd..efd921ea9 100755
--- a/debian/apt.systemd.daily
+++ b/debian/apt.systemd.daily
@@ -78,6 +78,12 @@ check_stamp()
stamp="$1"
interval="$2"
+ if [ $interval = always ]; then
+ debug_echo "check_stamp: ignoring time stamp file, interval set to always"
+ # treat as enough time has passed
+ return 0
+ fi
+
if [ $interval -eq 0 ]; then
debug_echo "check_stamp: interval=0"
# treat as no time has passed