xbps
xbps copied to clipboard
Document and stabilize exit status
Currently xbps uses errnos as exit status, the actual error numbers are not actually defined by a standard so it would be good to switch those out for pre defined and documented numbers ("EXIT STATUS" sections in man pages).
When defining those numbers, we should keep them somewhat compatible with the current ones, especially for xbps-install
and xbps-query
as xbps-src
and probably other scripts use those numbers.
We should also take this opportunity to add some exit statuses where 0 is returned currently, e.g. xbps-query -s fasdasd
should not return 0. (Same for -x
, -X
. Returning 2 would be consistent with -f
and the default behavior.)