checkupdates returns non-zero exit status 1

Eli Schwartz eschwartz at archlinux.org
Thu Oct 10 21:14:47 UTC 2019


On 10/10/19 4:58 PM, Johannes Löthberg wrote:
> Excerpts from Jeffrey Serio's message of October 10, 2019 22:37:
>> Hello all. I'm just curious what is going on with the checkupdates
>> script. It returns exit status 1. Anyone else have this issue? Or, is
>> this the intended behavior for when there are no updates?
>>
> 
> Hey,
> 
> Somehow it had completely slipped my mind that ab69666 (checkupdates:
> add option to download updates using -Swu, 2019-04-24) exits with 1 if
> there are no updates.
> 
> The question is whether we should treat updates and no updates the same
> and exit with 0, or if we want different exit statuses for either case..

I think it's reasonable to ask for different return codes depending on
whether pacman -Qu failed or whether pacman -Sy failed.

The question is whether we should stick with exit 1 for compatibility
with pacman -Qu, or have it exit 2.


I've also bcc'ed someone who privately emailed me with the same question
-- this has surprised multiple people now.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-contrib/attachments/20191010/855221ac/attachment.sig>


More information about the pacman-contrib mailing list