diff options
Diffstat (limited to 'methods')
| -rw-r--r-- | methods/sqv.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/methods/sqv.cc b/methods/sqv.cc index 3191752cc..3cb27354b 100644 --- a/methods/sqv.cc +++ b/methods/sqv.cc @@ -19,6 +19,7 @@ class SQVMethod : public aptMethod bool VerifyGetSigners(const char *file, const char *outfile, vector<string> keyFiles, vector<string> &signers); + bool ExecuteSqv(const std::vector<std::string> &args, std::vector<std::string> &signers); protected: bool URIAcquire(std::string const &Message, FetchItem *Itm) override; @@ -205,6 +206,13 @@ bool SQVMethod::VerifyGetSigners(const char *file, const char *outfile, args.push_back(outfile); } + return ExecuteSqv(args, signers); +} + +bool SQVMethod::ExecuteSqv(const std::vector<std::string> &args, std::vector<std::string> &signers) +{ + bool const Debug = DebugEnabled(); + // FIXME: Use a select() loop FileFd sqvout; FileFd sqverr; |
