Package: apticron
Version: 1.1.41
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I found the root cause of the problem:
In line 165 of /usr/sbin/apticron script tries to check that package is
installed:
i=`dpkg -s $p 2>/dev/null| grep "^Status: install ok installed"`
if [ -z "$i" ] ; then
But grep returns non-zero code there are no matching line (package is
not installed). So script will exit because it lanched with -e bash option.
Patch:
- --- a/apticron 2010-05-27 05:33:38.000000000 +0400
+++ b/apticron 2010-06-13 11:00:01.000000000 +0400
@@ -162,8 +162,7 @@
if [ "$NOTIFY_NEW" = "0" ]; then
# new packages don't go to the upgrading candidates list (see #531002)
for p in $PKGNAMES; do
- - i=`dpkg -s $p 2>/dev/null| grep "^Status: install ok
installed"`
- - if [ -z "$i" ] ; then
+ if [ -z "`dpkg -s $p 2>/dev/null| grep '^Status: install ok
installed'`" ] ; then
PKGNAMES=`echo $PKGNAMES |sed "s/\(^\| \)$p\( \|$\)/
/g;s/^ //g"`
fi
done
- -- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apticron depends on:
ii apt 0.7.25.3 Advanced front-end for dpkg
ii cron 3.0pl1-111 process scheduling daemon
ii debconf [debconf-2.0] 1.5.32 Debian configuration management sy
ii mailutils [mailx] 1:2.1+dfsg1-6 GNU mailutils utilities for handli
ii ucf 3.0025 Update Configuration File: preserv
Versions of packages apticron recommends:
ii apt-listchanges 2.84 package change history notificatio
ii iproute 20100519-2 networking and traffic control too
apticron suggests no packages.
- -- debconf information:
* apticron/notification: root
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkwUg3kACgkQp0cjlW3dsl/KygCfbe1mlEeYcZXVffhUvw2a4iZt
v3AAn0bwqYSU4GTNowXzE/vGfG3KF2E0
=+ii2
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]