[Bug 1037521] [NEW] 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:40:56 UTC 2012


Public bug reported:

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.

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

-- 
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:
  New

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