Public bug reported:

I'm using Ubuntu 16.04 dev with apt 1.0.10.2ubuntu1 and if a package
can't be downloaded 0 is returned. Here is an example output:

root@ubuntu:~# apt-get install --reinstall apt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of apt is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@ubuntu:~# echo $?
0

** 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/1537493

Title:
  0 is returned if package can't be downloaded

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

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

Reply via email to