diff options
author | Julian Andres Klode <jak@debian.org> | 2018-10-14 19:23:41 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2018-10-14 19:23:41 +0000 |
commit | b80e48783c183aeaf1d30d898a7743f091d96336 (patch) | |
tree | 7a0e3711dd68bbd8fdfd0d07f9af6f33aa9d2d51 /apt-pkg/contrib | |
parent | bb2f6c8c2a965ac1ff01582b93e64da8991dcbfc (diff) | |
parent | 8375d5b58038fc026098dcccc3de87cd9d740334 (diff) |
Merge branch 'feature/subkeys' into 'master'
Support subkeys and multiple keyrings in Signed-By options
See merge request apt-team/apt!27
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/gpgv.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apt-pkg/contrib/gpgv.cc b/apt-pkg/contrib/gpgv.cc index cc1fbc5aa..f8ab8d715 100644 --- a/apt-pkg/contrib/gpgv.cc +++ b/apt-pkg/contrib/gpgv.cc @@ -108,17 +108,20 @@ void ExecGPGV(std::string const &File, std::string const &FileGPG, Args.push_back(aptkey.c_str()); Args.push_back("--quiet"); Args.push_back("--readonly"); - if (key.empty() == false) + auto const keysFileFpr = VectorizeString(key, ','); + for (auto const &k: keysFileFpr) { - if (key[0] == '/') + if (unlikely(k.empty())) + continue; + if (k[0] == '/') { Args.push_back("--keyring"); - Args.push_back(key.c_str()); + Args.push_back(k.c_str()); } else { Args.push_back("--keyid"); - Args.push_back(key.c_str()); + Args.push_back(k.c_str()); } } Args.push_back("verify"); |