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  /
 ---------------------------------------------------------------




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to