apt-cache's return code should be != 0 if source package could not be found
Bug #1037521 reported by
Daniel Holbach
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
daniel@daydream:~$ apt-cache show gedit> /dev/null; echo $?
0
daniel@daydream:~$ apt-cache showsrc gedit> /dev/null; echo $?
0
daniel@daydream:~$ LC_ALL=C apt-cache show gedita> /dev/null; echo $?
E: No packages found
100
daniel@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.
Related branches
lp:~dholbach/apt/1037521
Rejected
for merging
into
lp:~ubuntu-core-dev/apt/ubuntu
- Ubuntu Core Development Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedcmdline/apt-cache.cc (+1/-1)
Changed in apt (Ubuntu): | |
assignee: | nobody → Daniel Holbach (dholbach) |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in apt (Ubuntu): | |
assignee: | Daniel Holbach (dholbach) → nobody |
To post a comment you must log in.
Apparently sbuild seems to rely on this return code....