diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-15 09:53:38 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-15 09:53:38 +0200 |
commit | 6db194289ece36e62cb8dab0aa178209b46c59f2 (patch) | |
tree | 6e1970919929dd3d2d03d343e4ec40ccad22ad66 /methods | |
parent | 35555c1826da5df9f2c06a74f2e91be843ad8142 (diff) | |
parent | 1d08f27046533e36849a63c084f51809be484d8c (diff) |
merged from http://bzr.debian.org/bzr/apt/apt/debian-sid
Diffstat (limited to 'methods')
-rw-r--r-- | methods/gpgv.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/methods/gpgv.cc b/methods/gpgv.cc index efe1f73f7..960c06180 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -65,13 +65,16 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile, return string("Couldn't spawn new process") + strerror(errno); else if (pid == 0) { - if (SigVerify::RunGPGV(outfile, file, 3, fd) == false) + _error->PushToStack(); + bool const success = SigVerify::RunGPGV(outfile, file, 3, fd); + if (success == false) { - // TRANSLATOR: %s is the trusted keyring parts directory - ioprintf(ret, _("No keyring installed in %s."), - _config->FindDir("Dir::Etc::TrustedParts").c_str()); - return ret.str(); + string errmsg; + _error->PopMessage(errmsg); + _error->RevertToStack(); + return errmsg; } + _error->RevertToStack(); exit(111); } close(fd[1]); |