diff --git a/cpp/fetch-indexes.cpp b/cpp/fetch-indexes.cpp index d6310e5..f03fe5d 100644 --- a/cpp/fetch-indexes.cpp +++ b/cpp/fetch-indexes.cpp @@ -218,11 +218,11 @@ int check_pending_packages(const std::string& release) { std::set current_builds; std::vector source_packages; - auto records_gen = pocket.getBuildRecords("Successfully built"); + auto records_gen = pocket.getBuildRecords("Successfully built", "", ""); std::vector records; - for (auto br : records_gen) records.push_back(br); + for (auto br : records_gen) records.emplace_back(br); - for (auto &build_record : records) { + for (auto build_record : records) { if (build_record.datebuilt < three_hours_ago) { source_packages.clear(); break;