[pacman-dev] pacman return values
I noticed that pacman3 returns 0 on query (-Q, -Si) even if the package doesn't exist. I have no CVS access ATM, so I can't check out if this has been fixed... bardo
On 3/30/07, bardo <ilbardo@gmail.com> wrote:
I noticed that pacman3 returns 0 on query (-Q, -Si) even if the package doesn't exist. I have no CVS access ATM, so I can't check out if this has been fixed...
bardo
Nothing has changed from the release with return codes. But what is "fixed"? We've never had a standard set of return codes and we want to make that happen in 3.1. Hopefully we can right up a list, get it implemented, and stick it in the manpage. -Dan
2007/3/30, Dan McGee <dpmcgee@gmail.com>:
Nothing has changed from the release with return codes. But what is "fixed"? We've never had a standard set of return codes and we want to make that happen in 3.1. Hopefully we can right up a list, get it implemented, and stick it in the manpage.
No standard set, yeah, but I thought they were implemented in at least a basic way (0==ok, 1==not ok). I've used return codes for scripting with pacman some time ago, though I don't remember which flags I was using. Anyway, thanks for the info. bardo
On 3/30/07, bardo <ilbardo@gmail.com> wrote:
2007/3/30, Dan McGee <dpmcgee@gmail.com>:
Nothing has changed from the release with return codes. But what is "fixed"? We've never had a standard set of return codes and we want to make that happen in 3.1. Hopefully we can right up a list, get it implemented, and stick it in the manpage.
No standard set, yeah, but I thought they were implemented in at least a basic way (0==ok, 1==not ok). I've used return codes for scripting with pacman some time ago, though I don't remember which flags I was using. Anyway, thanks for the info.
I do agree that some of these ops (-Qi, -Si, etc) should return 1 on a "package not found" - we had this discussion with Travis somewhere too.
participants (3)
-
Aaron Griffin
-
bardo
-
Dan McGee