Hi Boris On Sun, Mar 22, 2009 at 07:49:29PM +0100, Boris Trautmann wrote: > 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.
That must be a bug in aptitude! > 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. Yes that is a nice workaround. However I really think that aptitude should have a decent exit code. Could you file a bug report about that on aptitude? Do apt-get have the same problem? > additionally i found that in line 461 cron-apt sends an additional email > insteat of logging to syslog. This was a real bug in cron-apt. Fixed now. > ----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... ;-) No problem. Fully understandable. :-) Bets regards, // Ola > -- 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 > > > -- --------------------- Ola Lundqvist --------------------------- / o...@debian.org Annebergsslingan 37 \ | o...@inguza.com 654 65 KARLSTAD | | http://inguza.com/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org