]> git.saurik.com Git - apt.git/commitdiff
* debian/apt.cron.daily:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 4 Jul 2012 20:46:06 +0000 (22:46 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 4 Jul 2012 20:46:06 +0000 (22:46 +0200)
  - do not try to backup extended_states file if it doesn't
    exist (Closes: #680287)

debian/apt.cron.daily
debian/changelog

index 6f6dc92a491b2ee8a5dd7e860b497b528f5639ff..5c00f22db11b9e5af618df3ef75e84c88ab190a5 100644 (file)
@@ -327,12 +327,14 @@ check_power(){
 
 # ------------------------ main ----------------------------
 
-# Backup the 7 last versions of APT's extended_states file
-# shameless copy from dpkg cron
-if cd /var/backups ; then
-    if ! cmp -s apt.extended_states.0 /var/lib/apt/extended_states; then
-       cp -p /var/lib/apt/extended_states apt.extended_states
-       savelog -c 7 apt.extended_states >/dev/null
+if test -r /var/lib/apt/extended_states; then
+    # Backup the 7 last versions of APT's extended_states file
+    # shameless copy from dpkg cron
+    if cd /var/backups ; then
+       if ! cmp -s apt.extended_states.0 /var/lib/apt/extended_states; then
+           cp -p /var/lib/apt/extended_states apt.extended_states
+           savelog -c 7 apt.extended_states >/dev/null
+       fi
     fi
 fi
 
index c36a171e7f81c4f97ac8eb9c4c9609bfb54d6b8b..11652d5575e32e2b055d57f8abda4300f40fba89 100644 (file)
@@ -9,6 +9,11 @@ apt (0.9.7.2) UNRELEASED; urgency=low
   [ Manpage translation updates ]
   * German (Chris Leick)
 
+  [ David Kalnischkies ]
+  * debian/apt.cron.daily:
+    - do not try to backup extended_states file if it doesn't
+      exist (Closes: #680287)
+
  -- David Kalnischkies <kalnischkies@gmail.com>  Sun, 01 Jul 2012 08:20:57 +0200
 
 apt (0.9.7.1) unstable; urgency=low