registry team mailing list archive
-
registry team
-
Mailing list archive
-
Message #19700
[Bug 18306] Re: `apt-cache show gphoto2' is silent and exits 0.
No, it doesn't. Zero exit status seems correct to me, as there are no errors.
BTW, `apt-cache show' will exit with zero status if at least one package exists, so:
$ apt-cache show coreutils package-that-does-not-exist
Package: coreutils
<...>
Task: minimal
N: Unable to locate package package-that-does-not-exist
$ echo $?
0
$ apt-cache show awk package-that-does-not-exist
N: Can't select versions from package 'awk' as it purely virtual
N: Unable to locate package package-that-does-not-exist
N: No packages found
$ echo $?
0
$ apt-cache show package-that-does-not-exist
N: Unable to locate package package-that-does-not-exist
E: No packages found
$ echo $?
100
So, apt-cache exits with non-zero status iff there are errors (lines
starting with `E:'). Lines starting with `E:' are output to stderr,
while everything else is output to stdout.
--
`apt-cache show gphoto2' is silent and exits 0.
https://bugs.launchpad.net/bugs/18306
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Debian.