You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by ji...@jidanni.org on 2009/12/20 03:42:18 UTC

sa-update perhaps should exit 0 if all is good

Regarding sa-update,
EXIT CODES
       An exit code of 0 means an update was available, and was
       downloaded and installed successfully if --checkonly was
       not specified.

       An exit code of 1 means no fresh updates were available.

I would make this:
  0 means you are all up to date. The connection was made, and if
  something was needed it was download. Anyways you are now all up to
  date.

This would then not stop Makefiles that call it, nor would one need to
do case $? in 0|1)...; esac.

Re: sa-update perhaps should exit 0 if all is good

Posted by "McDonald, Dan" <Da...@austinenergy.com>.
On Dec 19, 2009, at 8:42 PM, "jidanni@jidanni.org"  
<ji...@jidanni.org> wrote:

> Regarding sa-update,
> EXIT CODES
>
>
> This would then not stop Makefiles that call it, nor would one need to
> do case $? in 0|1)...; esac.

But it would break scripts that check for a 0 and then run sa-compile  
on the freshly downloaded updates.