diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-07-04 22:46:06 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-07-04 22:46:06 +0200 |
commit | a3b76cde9b0be9a83ca1548e8a6a91d26d8fa29e (patch) | |
tree | cb3146720c99b75c6d9ae8d314ac04a296cf6b34 /debian | |
parent | fe21cadff2f3e09e712a91c984ce05fd462bb2fd (diff) | |
download | apt-a3b76cde9b0be9a83ca1548e8a6a91d26d8fa29e.tar.gz |
* debian/apt.cron.daily:
- do not try to backup extended_states file if it doesn't
exist (Closes: #680287)
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.cron.daily | 14 | ||||
-rw-r--r-- | debian/changelog | 5 |
2 files changed, 13 insertions, 6 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 6f6dc92a4..5c00f22db 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -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 diff --git a/debian/changelog b/debian/changelog index c36a171e7..11652d557 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |