diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-07-01 23:44:37 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-07-02 00:03:20 +0200 |
commit | f4dcab0504a68595d9e95c953ce66f46f9ad30aa (patch) | |
tree | 5aeb96504bafe008d86476d2ee043589daf7df47 /cmdline | |
parent | 08fcf9628806af202e555bd02b3611e4e9a3d757 (diff) |
deprecate 'apt-key update' and no-op it in Debian
Debian isn't using 'update' anymore for years and the command is in
direct conflict with our goal of not requiring gnupg anymore, so it
is high time to officially declare this command as deprecated.
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-key.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in index 49056f2a6..511c91c16 100644 --- a/cmdline/apt-key.in +++ b/cmdline/apt-key.in @@ -156,6 +156,13 @@ net_update() { } update() { + if [ -z "$APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE" ]; then + echo >&2 "Warning: 'apt-key update' is deprecated and should not be used anymore!" + if [ -z "$ARCHIVE_KEYRING" ]; then + echo >&2 "Note: In your distribution this command is a no-op and can therefore be removed safely." + exit 0 + fi + fi if [ ! -f "$ARCHIVE_KEYRING" ]; then echo >&2 "ERROR: Can't find the archive-keyring" echo >&2 "Is the &keyring-package; package installed?" |