Procházet zdrojové kódy

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

Michael Vogt před 19 roky
rodič
revize
e15dcd38af
2 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 6 0
      debian/apt.cron.daily
  2. 2 0
      debian/changelog

+ 6 - 0
debian/apt.cron.daily

@@ -170,6 +170,12 @@ if which on_ac_power >/dev/null; then
     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
 if check_stamp $UPDATE_STAMP $UpdateInterval; then
     if apt-get -qq update 2>/dev/null; then

+ 2 - 0
debian/changelog

@@ -40,6 +40,8 @@ apt (0.7.7) UNRELEASED; urgency=low
   * cmdline/apt-mark:
     - Fix chmoding after have renamed the extended-states file (LP: #140019)
       (thanks to Laurent Bigonville)
+  * debian/apt.cron.daily:
+    - only run the cron job if apt-get check succeeds (LP: #131719)
   
   [ Program translations ]
     - French updated