* debian/apt.cron.daily:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 18 Aug 2010 09:23:49 +0000 (11:23 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 18 Aug 2010 09:23:49 +0000 (11:23 +0200)
  - create backups for our extended_states file (Closes: #593430)

debian/apt.cron.daily
debian/changelog

index e59b05e..8c0e4c4 100644 (file)
@@ -320,6 +320,15 @@ debug_echo()
 
 # ------------------------ 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
+    fi
+fi
+
 # check apt-config exstance
 if ! which apt-config >/dev/null ; then
        exit 0
index 2e8253b..4fdfb27 100644 (file)
@@ -5,8 +5,10 @@ apt (0.8.0~pre2) UNRELEASED; urgency=low
     - fix error checking for vsnprintf in its safe variant
   * methods/bzip2.cc:
     - fix error checking for read in case of failing bzip2/lzma/whatever
+  * debian/apt.cron.daily:
+    - create backups for our extended_states file (Closes: #593430)
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 18 Aug 2010 01:32:02 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 18 Aug 2010 11:09:52 +0200
 
 apt (0.8.0~pre1) experimental; urgency=low