← Back to team overview

touch-packages team mailing list archive

[Bug 1522993] [NEW] Deleting a non-existent key does not result in an error

 

Public bug reported:

I'm using Ubuntu 16.04 dev with apt 1.1.3 and if I'm deleting a key with
"apt-key del" which does not exist "OK" is being shown and 0 is returned
while I would expect an error message to be shown and another value than
0 being returned. Here is an example how it currently looks:

root@ubuntu:~# apt-key del does_not_exist
OK
root@ubuntu:~# echo $?
0

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1522993

Title:
  Deleting a non-existent key does not result in an error

Status in apt package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 16.04 dev with apt 1.1.3 and if I'm deleting a key
  with "apt-key del" which does not exist "OK" is being shown and 0 is
  returned while I would expect an error message to be shown and another
  value than 0 being returned. Here is an example how it currently
  looks:

  root@ubuntu:~# apt-key del does_not_exist
  OK
  root@ubuntu:~# echo $?
  0

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


Follow ups