diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2013-03-16 09:15:46 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2013-03-16 09:15:46 +0100 |
commit | a7e6a0ccd0328bd3c4292528225def929c36f607 (patch) | |
tree | b5337b311f7ed3801ddc11c772d91a6b4b99cc87 /methods/gpgv.cc | |
parent | 55971004215609a02ca19c59bd058da20729ba11 (diff) | |
parent | 2d3fe9cfadb33556b7563a98bb5a4698888e6c40 (diff) |
merged from davids bundle
Diffstat (limited to 'methods/gpgv.cc')
-rw-r--r-- | methods/gpgv.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/methods/gpgv.cc b/methods/gpgv.cc index 25ba0d063..3f814b9f0 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -6,6 +6,7 @@ #include <apt-pkg/fileutl.h> #include <apt-pkg/indexcopy.h> #include <apt-pkg/configuration.h> +#include <apt-pkg/gpgv.h> #include <utime.h> #include <stdio.h> @@ -70,19 +71,7 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile, if (pid < 0) return string("Couldn't spawn new process") + strerror(errno); else if (pid == 0) - { - _error->PushToStack(); - bool const success = SigVerify::RunGPGV(outfile, file, 3, fd); - if (success == false) - { - string errmsg; - _error->PopMessage(errmsg); - _error->RevertToStack(); - return errmsg; - } - _error->RevertToStack(); - exit(111); - } + ExecGPGV(outfile, file, 3, fd); close(fd[1]); FILE *pipein = fdopen(fd[0], "r"); |