X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ac3dee0e5091f19b77de96eec5241cb57c13f2a1..99a5ac4da1f64b233c3f66f32593231ce3066757:/debian/apt.cron.daily diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 4f7eff47b..d1016dfc5 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -147,6 +147,9 @@ check_size_constraints() fi } +if ! which apt-config >/dev/null; then + exit 0 +fi UpdateInterval=0 DownloadUpgradeableInterval=0 @@ -172,6 +175,7 @@ fi # check if we can lock the cache and if the cache is clean if ! apt-get check -q -q 2>/dev/null; then + echo "$0: could not lock the APT cache" exit 1 fi