summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-05-02 12:16:41 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2008-05-02 12:16:41 -0300
commit626a8c601bf1179f6d332337d01e527c008cfe78 (patch)
treecf69e604bda65c02afd44470bee2f8e22fde162b /debian
parentd14937c34b510a3676649049d20b5e89b50e789d (diff)
Make cron script quiet if cache is locked. Closes: #459344
Diffstat (limited to 'debian')
-rw-r--r--debian/apt.cron.daily5
-rw-r--r--debian/changelog2
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index ec53a7f2f..1ca830c93 100644
--- a/debian/apt.cron.daily
+++ b/debian/apt.cron.daily
@@ -193,9 +193,10 @@ if which on_ac_power >/dev/null; then
fi
# check if we can lock the cache and if the cache is clean
+# There's a reasonable chance that someone is already running an apt
+# frontend that has locked the cache, so exit quietly if it is locked.
if ! apt-get check -q -q 2>/dev/null; then
- echo "$0: could not lock the APT cache"
- exit 1
+ exit 0
fi
# sleep random amount of time
diff --git a/debian/changelog b/debian/changelog
index cba6920eb..5728af419 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ apt (0.7.13) UNRELEASED; urgency=low
* Add missing build-depends back from build-depends-indep field.
Closes: #478231
+ * Make cron script quiet if cache is locked. Thanks to Ted Percival
+ <ted@midg3t.net> for the patch. Closes: #459344
-- Otavio Salvador <otavio@debian.org> Fri, 02 May 2008 12:07:08 -0300