summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2020-08-04 10:07:10 +0000
committerJulian Andres Klode <jak@debian.org>2020-08-04 10:07:10 +0000
commit1afe7c8b874abb61cde591e0241b967ef1b99991 (patch)
tree38590a014f489acb92e2b3294766d0ec26a97c56 /apt-pkg/contrib
parent4d5a389dfc2cda5c82876fefdb9dd283e013f827 (diff)
parentf9f0ae2bbb2d0bfeccddecbf8b9ec07ccd54cd9a (diff)
Merge branch 'pu/apt-key-deprecated' into 'master'
Fully deprecate apt-key, schedule removal for Q2/2022 See merge request apt-team/apt!119
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/gpgv.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/contrib/gpgv.cc b/apt-pkg/contrib/gpgv.cc
index d956eaf00..28f3150c3 100644
--- a/apt-pkg/contrib/gpgv.cc
+++ b/apt-pkg/contrib/gpgv.cc
@@ -251,6 +251,9 @@ void ExecGPGV(std::string const &File, std::string const &FileGPG,
setenv("APT_CONFIG", conf.get(), 1);
}
+ // Tell apt-key not to emit warnings
+ setenv("APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE", "1", 1);
+
if (releaseSignature == DETACHED)
{
auto detached = make_unique_FILE(FileGPG, "r");