#799342 /usr/bin/apt-key: apt-key del should warn when called with wrong parameter

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Norbert Kiesel
Date:
2015-09-18 06:42:06 UTC
Severity:
wishlist
#799342#5
Date:
2015-09-18 06:39:23 UTC
From:
To:
Dear Maintainer,

apt-key del <keyid> accepts anything as keyid and prints "OK" even if nothing
happened.  Perhaps I should have known better, but I initially used `apt-key
del 4096R/`` and got an "OK" and thought everything was good.  Of course, an
`apt-key list` then showed that the key was still there.  I finally figured out
that I had to use `apt-key del 65FFB764`.

Some suggestions:

  1. warn the user if the provided parameter is something that can never be a
keyid
  2. count from how many keyrings the key was removed and print that, instead
of simply printing an "OK"