Your message dated Wed, 25 Mar 2009 15:39:11 +0100
with message-id <[email protected]>
and subject line Re: Bug#520792: cron-apt: allways sends email regardles of
MAILON setting
has caused the Debian Bug report #520792,
regarding cron-apt: allways sends email regardles of MAILON setting
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
520792: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520792
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Thanks to you as well.
You are mentioned in the changelog for the latest update :-)
Best regards,
// Ola
Quoting Boris <[email protected]>:
Hi Ola,
I am absolutely fine if you close this bug.
Thank you for your very quick responses, i did not expect to get an
answer that quick.
You do a great job and i am happy being able to assist a tiny little
bit :-)
regards boris
Ola Lundqvist wrote:
Hi Boris
Quoting Boris <[email protected]>:
Hi Ola,
thanks for your reply.
You are welcome. :-)
i think you're right the problem is on the aptitude side!
with apt-get everything looks fine.
Ok, good to know.
for the moment i will keep my "fix"
Ok.
and file a bugreport on aptitude
with the additional question for a proper documentation of the aptitude
return-codes.
Thanks for your help on this.
For your information I have uploaded a new version with the other
problem you found. It should be available in sid today.
Is it ok if I close this bug now?
Best regards,
// Ola
thanks boris
Ola Lundqvist wrote:
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
--
--- Inguza Technology AB --- MSc in Information Technology ----
/ [email protected] Annebergsslingan 37 \
| [email protected] 654 65 KARLSTAD |
| http://inguza.com/ Mobile: +46 (0)70-332 1551 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--- End Message ---