[Bug 1037521] Re: apt-cache's return code should be != 0 if source package could not be found
Daniel Holbach
daniel.holbach at ubuntu.com
Mon Feb 17 07:35:48 UTC 2014
** Changed in: apt (Ubuntu)
Assignee: Daniel Holbach (dholbach) => (unassigned)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1037521
Title:
apt-cache's return code should be != 0 if source package could not be
found
Status in “apt” package in Ubuntu:
Confirmed
Bug description:
daniel at daydream:~$ apt-cache show gedit> /dev/null; echo $?
0
daniel at daydream:~$ apt-cache showsrc gedit> /dev/null; echo $?
0
daniel at daydream:~$ LC_ALL=C apt-cache show gedita> /dev/null; echo $?
E: No packages found
100
daniel at daydream:~$ LC_ALL=C apt-cache showsrc gedita> /dev/null; echo $?
W: Unable to locate package gedita
0
Maybe it should return 100 as well for a non-existing source package.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1037521/+subscriptions
More information about the foundations-bugs
mailing list