ソースを参照

* debian/apt.cron.daily:
- only run the cron job if apt-get check succeeds (LP: #131719)

Michael Vogt 19 年 前
コミット
80c965368a
共有2 個のファイルを変更した13 個の追加0 個の削除を含む
  1. 6 0
      debian/apt.cron.daily
  2. 7 0
      debian/changelog

+ 6 - 0
debian/apt.cron.daily

@@ -170,6 +170,12 @@ if which on_ac_power >/dev/null; then
     fi
     fi
 fi
 fi
 
 
+# check if we can lock the cache and if the cache is clean
+if ! apt-get check -q -q 2>/dev/null; then
+    exit 1
+fi
+
+
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
 if check_stamp $UPDATE_STAMP $UpdateInterval; then
 if check_stamp $UPDATE_STAMP $UpdateInterval; then
     if apt-get -qq update 2>/dev/null; then
     if apt-get -qq update 2>/dev/null; then

+ 7 - 0
debian/changelog

@@ -1,3 +1,10 @@
+apt (0.7.6ubuntu14) gutsy; urgency=low
+
+  * debian/apt.cron.daily:
+    - only run the cron job if apt-get check succeeds (LP: #131719)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 12 Oct 2007 17:56:22 +0200
+
 apt (0.7.6ubuntu13) gutsy; urgency=low
 apt (0.7.6ubuntu13) gutsy; urgency=low
 
 
   * apt-pkg/deb/dpkgpm.cc:
   * apt-pkg/deb/dpkgpm.cc: