[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
Thu Aug 16 11:51:53 UTC 2012
** Changed in: apt (Ubuntu)
Importance: Undecided => Low
** Changed in: apt (Ubuntu)
Status: New => Fix Committed
** Changed in: apt (Ubuntu)
Assignee: (unassigned) => Daniel Holbach (dholbach)
--
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:
Fix Committed
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