From 81d7c3a9dd92571380ee4bc86e38aea9b6a35e26 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Tue, 17 Dec 2024 00:57:07 -0600 Subject: [PATCH] Ensure we access current_source_publication more directly --- cpp/fetch-indexes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/fetch-indexes.cpp b/cpp/fetch-indexes.cpp index a56364b..755d457 100644 --- a/cpp/fetch-indexes.cpp +++ b/cpp/fetch-indexes.cpp @@ -228,8 +228,8 @@ int check_pending_packages(const std::string& release) { break; } check_builds.insert(build_record.title); - if (build_record.current_source_publication.has_value()) { - auto src_pub = build_record.current_source_publication.value(); + if (build_record.current_source_publication) { + auto src_pub = build_record.current_source_publication; if (src_pub.distro_series && src_pub.distro_series->name == series.name) { bool found = false; for (auto& sp : source_packages) {