diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-18 11:23:49 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-18 11:23:49 +0200 |
commit | a23a7811d04b3f3f7ce761d025b684b3cf82b25e (patch) | |
tree | dd8cd5620d1b14221eefdcd29704934fd20857a5 /debian/apt.cron.daily | |
parent | b508453a93fb26354b3f7f9fd828216d1cf4636d (diff) |
* debian/apt.cron.daily:
- create backups for our extended_states file (Closes: #593430)
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r-- | debian/apt.cron.daily | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index e59b05ee4..8c0e4c416 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -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 |