Public bug reported:

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.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1037521

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1037521/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to