Explicitly pass pkgconf to the lambda for source checks

main
Simon Quigley 5 days ago
parent 9636a83546
commit fca016b1df

@ -222,8 +222,7 @@ bool WebServer::start_server(quint16 port) {
task_queue->enqueue(
job_statuses->at("source_check"),
[this, proposed](std::shared_ptr<Log> log) mutable {
std::shared_ptr<PackageConf> pkgconf = log->get_task_context()->get_parent_packageconf();
[this, pkgconf, proposed](std::shared_ptr<Log> 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)) {

Loading…
Cancel
Save