Package: cron-apt Version: 0.6.7 Severity: normal Tags: patch
since 2009.03.12 my cron-apt installation sends email-reports each time it runs. the MAILON parameter has no effect on this behaviour. i found that aptitude changed it's successfull exitcode from 0 to 255, this causes cron-apt to allways take the result as error and send an email. i changed line 355 from: if [ $RET -ne 0 ]; then to: if [ $RET -ne 0 -a $RET -ne 255 ]; then this fixed the problem for me. additionally i found that in line 461 cron-apt sends an additional email insteat of logging to syslog. ----diff 355c355 < if [ $RET -ne 0 ]; then --- > if [ $RET -ne 0 -a $RET -ne 255 ]; then 461c461 < createmailinfo $ACTIONF --- > createsysloginfo $ACTIONF ----diff end yours boris ps.: please excuse my horrible english... ;-) -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (990, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cron-apt depends on: ii apt 0.7.20.2 Advanced front-end for dpkg Versions of packages cron-apt recommends: ii bsd-mailx [mailx] 8.1.2-0.20071201cvs-3 A simple mail user agent ii cron 3.0pl1-105 management of regular background p ii liblockfile1 1.08-3 NFS-safe locking library, includes ii mailx 1:20071201-3 Transitional package for mailx ren cron-apt suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

