apt-cache's return code should be != 0 if source package could not be found

Bug #1037521 reported by Daniel Holbach on 2012-08-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)

Bug Description

daniel@daydream:~$ apt-cache show gedit> /dev/null; echo $?
daniel@daydream:~$ apt-cache showsrc gedit> /dev/null; echo $?

daniel@daydream:~$ LC_ALL=C apt-cache show gedita> /dev/null; echo $?
E: No packages found
daniel@daydream:~$ LC_ALL=C apt-cache showsrc gedita> /dev/null; echo $?
W: Unable to locate package gedita

Maybe it should return 100 as well for a non-existing source package.

Related branches

Changed in apt (Ubuntu):
assignee: nobody → Daniel Holbach (dholbach)
importance: Undecided → Low
status: New → Fix Committed
Daniel Holbach (dholbach) wrote :

Apparently sbuild seems to rely on this return code....

Changed in apt (Ubuntu):
status: Fix Committed → Confirmed
Changed in apt (Ubuntu):
assignee: Daniel Holbach (dholbach) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers