diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-12-07 16:09:10 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-12-07 16:09:10 +0000 |
| commit | 4063d96cdd9df79e1ca25410be30571d57296779 (patch) | |
| tree | 1c5de4c1e0104d3539092c4ea3fdf33d8297e64b /apt-pkg | |
| parent | 9dbb3a242f4f7a53c3678fd4f37e03ccc8479113 (diff) | |
| parent | 2bb8a2c71c12063e52220c3a3839e063f11a319d (diff) | |
Merge branch 'bye-apt-key' into 'main'
Stop using apt-key for verification and move apt-key to test/
See merge request apt-team/apt!406
Diffstat (limited to 'apt-pkg')
| -rw-r--r-- | apt-pkg/contrib/gpgv.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-pkg/contrib/gpgv.cc b/apt-pkg/contrib/gpgv.cc index 879e7635a..ce0bba0d1 100644 --- a/apt-pkg/contrib/gpgv.cc +++ b/apt-pkg/contrib/gpgv.cc @@ -232,7 +232,7 @@ void ExecGPGV(std::string const &File, std::string const &FileGPG, FileFd keyFd(k, FileFd::ReadOnly); if (not keyFd.IsOpen()) { - apt_warning(std::cerr, statusfd, fd, "The key(s) in the keyring %s are ignored as the file is not readable by user executing apt-key.\n", k.c_str()); + apt_warning(std::cerr, statusfd, fd, "The key(s) in the keyring %s are ignored as the file is not readable by user executing gpgv.\n", k.c_str()); } else if (APT::String::Endswith(k, ".asc")) { @@ -512,14 +512,14 @@ void ExecGPGV(std::string const &File, std::string const &FileGPG, { if (errno == EINTR) continue; - apt_error(std::cerr, statusfd, fd, _("Waited for %s but it wasn't there"), "apt-key"); + apt_error(std::cerr, statusfd, fd, _("Waited for %s but it wasn't there"), gpgv.c_str()); local_exit(EINTERNAL); } // check if it exit'ed normally … if (not WIFEXITED(Status)) { - apt_error(std::cerr, statusfd, fd, _("Sub-process %s exited unexpectedly"), "apt-key"); + apt_error(std::cerr, statusfd, fd, _("Sub-process %s exited unexpectedly"), gpgv.c_str()); local_exit(EINTERNAL); } @@ -527,7 +527,7 @@ void ExecGPGV(std::string const &File, std::string const &FileGPG, if (WEXITSTATUS(Status) != 0) { // we forward the statuscode, so don't generate a message on the fd in this case - apt_error(std::cerr, -1, fd, _("Sub-process %s returned an error code (%u)"), "apt-key", WEXITSTATUS(Status)); + apt_error(std::cerr, -1, fd, _("Sub-process %s returned an error code (%u)"), gpgv.c_str(), WEXITSTATUS(Status)); local_exit(WEXITSTATUS(Status)); } |
