From 1747377d5b486318632026f4660ea2e7fb5f9ba2 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 25 Apr 2025 20:40:43 +0200 Subject: sqv: Refactor execution of sqv into separate method --- methods/sqv.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'methods') 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 keyFiles, vector &signers); + bool ExecuteSqv(const std::vector &args, std::vector &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 &args, std::vector &signers) +{ + bool const Debug = DebugEnabled(); + // FIXME: Use a select() loop FileFd sqvout; FileFd sqverr; -- cgit v1.2.3-70-g09d2