diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-04-25 20:40:43 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-04-25 21:07:07 +0000 |
| commit | 1747377d5b486318632026f4660ea2e7fb5f9ba2 (patch) | |
| tree | 84c94aa269f48a88e1c9bc58d8b799b597080a53 | |
| parent | 0989275c2f7afb7a5f7698a096664a1035118ebf (diff) | |
sqv: Refactor execution of sqv into separate method
| -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; |
