yay
yay copied to clipboard
Exit code does not match pacman
Affected Version
yay v10.3.1.r58.gb2a7281 - libalpm v13.0.1
Describe the bug
In some cases, the exit code of yay
does not match that of pacman
. This makes automation difficult because the tools behave in different ways.
Reproduction Steps
- Fully update the system.
- Query for upgrades using
yay
. - Query for upgrades using
pacman
. - Expect the return codes of both invocations to be the same.
Expected behavior
The exit codes provided by yay
should match those of pacman
.
Output
# pacman -Syyu
:: Synchronizing package databases...
:: Starting full system upgrade...
there is nothing to do
$ yay -Qu
$ echo $?
0
$ pacman -Qu
$ echo $?
1