[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
Fri Aug 17 14:53:06 UTC 2012


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

** Changed in: apt (Ubuntu)
       Status: Fix Committed => Confirmed

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

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