Ensure we access current_source_publication more directly

main
Simon Quigley 6 days ago
parent cf4830455e
commit 81d7c3a9dd

@ -228,8 +228,8 @@ int check_pending_packages(const std::string& release) {
break; break;
} }
check_builds.insert(build_record.title); check_builds.insert(build_record.title);
if (build_record.current_source_publication.has_value()) { if (build_record.current_source_publication) {
auto src_pub = build_record.current_source_publication.value(); auto src_pub = build_record.current_source_publication;
if (src_pub.distro_series && src_pub.distro_series->name == series.name) { if (src_pub.distro_series && src_pub.distro_series->name == series.name) {
bool found = false; bool found = false;
for (auto& sp : source_packages) { for (auto& sp : source_packages) {

Loading…
Cancel
Save