Bug#462734: /etc/cron.daily/apt fails on failed apt-get check
In that case, I recommend you comment out the if statement with hash marks.
On 1/26/08, Lea Wiemann <LeWiemann@gmail.com> wrote:
Package: apt
Version: 0.7.9
Severity: wishlist
/etc/cron.daily/apt reads:
# 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
This causes me to receive email from cron sometimes just because
apt-get happens to be running (updating, etc.), which is annoying.
I think it would be better for /etc/cron.daily/apt to exit with status
0, since it's only performing non-critical maintenance tasks anyway.
-- Package-specific info:
-- (/etc/apt/preferences present, but not submitted) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2007.07.31 GnuPG archive keys of the Debian a
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libgcc1 1:4.3-20080116-1 GCC support library
ii libstdc++6 4.3-20080116-1 The GNU Standard C++ Library v3
apt recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to deity-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: