FS#15938 - -Qu always returns 0 on pacman 3.3
Attached to Project:
Pacman
Opened by Tomas Mudrunka (harvie) - Saturday, 15 August 2009, 01:24 GMT
Last edited by Xavier (shining) - Wednesday, 19 August 2009, 06:28 GMT
Opened by Tomas Mudrunka (harvie) - Saturday, 15 August 2009, 01:24 GMT
Last edited by Xavier (shining) - Wednesday, 19 August 2009, 06:28 GMT
|
Details
Summary and Info: older pacman had different exit code for
-Qu reflecting if some upgrades are available or not, but
pacman 3.3 always returns 0 for -Qu not depending on
available upgrades.
return codes of old pacman: updates available = 0 no new packages = 1 (or nonzero) This feature was important for various kinds of pacman frontends like update notifiers, etc... please give it back. Steps to Reproduce: pacman -Qu; echo $?; |
This task depends upon
Closed by Xavier (shining)
Wednesday, 19 August 2009, 06:28 GMT
Reason for closing: Fixed
Additional comments about closing: fixed by commit bba234a92ed9
Wednesday, 19 August 2009, 06:28 GMT
Reason for closing: Fixed
Additional comments about closing: fixed by commit bba234a92ed9
Comment by Xavier (shining) -
Tuesday, 18 August 2009, 15:20 GMT
here is a patch
0001-query.c-return-1-when-no...
(1.2 KiB)