From fca016b1dfe54e38c776863618ccf66b056c9a76 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Tue, 28 Jan 2025 14:47:41 -0600 Subject: [PATCH] Explicitly pass pkgconf to the lambda for source checks --- cpp/web_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/web_server.cpp b/cpp/web_server.cpp index 5aa9a04..f5e9b47 100644 --- a/cpp/web_server.cpp +++ b/cpp/web_server.cpp @@ -222,8 +222,7 @@ bool WebServer::start_server(quint16 port) { task_queue->enqueue( job_statuses->at("source_check"), - [this, proposed](std::shared_ptr log) mutable { - std::shared_ptr pkgconf = log->get_task_context()->get_parent_packageconf(); + [this, pkgconf, proposed](std::shared_ptr log) mutable { std::string package_version = pkgconf->upstream_version + "-0ubuntu0~ppa" + std::to_string(pkgconf->ppa_revision); bool found_in_ppa = false; for (auto spph : proposed.getPublishedSources("", "", std::nullopt, true, true, "", pkgconf->package->name, "", package_version)) {