Explicitly pass pkgconf to the lambda for source checks
This commit is contained in:
parent
9636a83546
commit
fca016b1df
@ -222,8 +222,7 @@ bool WebServer::start_server(quint16 port) {
|
|||||||
|
|
||||||
task_queue->enqueue(
|
task_queue->enqueue(
|
||||||
job_statuses->at("source_check"),
|
job_statuses->at("source_check"),
|
||||||
[this, proposed](std::shared_ptr<Log> log) mutable {
|
[this, pkgconf, proposed](std::shared_ptr<Log> log) mutable {
|
||||||
std::shared_ptr<PackageConf> pkgconf = log->get_task_context()->get_parent_packageconf();
|
|
||||||
std::string package_version = pkgconf->upstream_version + "-0ubuntu0~ppa" + std::to_string(pkgconf->ppa_revision);
|
std::string package_version = pkgconf->upstream_version + "-0ubuntu0~ppa" + std::to_string(pkgconf->ppa_revision);
|
||||||
bool found_in_ppa = false;
|
bool found_in_ppa = false;
|
||||||
for (auto spph : proposed.getPublishedSources("", "", std::nullopt, true, true, "", pkgconf->package->name, "", package_version)) {
|
for (auto spph : proposed.getPublishedSources("", "", std::nullopt, true, true, "", pkgconf->package->name, "", package_version)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user