From dbf982e9994db49a3a6645a2a0cf79656a0d9b34 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 7 Oct 2021 13:23:57 +0300 Subject: Fix loader to add base repository manifest implicitly if repositories.manifest contains no repository manifests --- load/load.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'load/load.cxx') diff --git a/load/load.cxx b/load/load.cxx index 16bdd40..3408284 100644 --- a/load/load.cxx +++ b/load/load.cxx @@ -667,6 +667,9 @@ load_repositories (const options& lo, manifest_parser mp (ifs, p.string ()); rpm = pkg_repository_manifests (mp, ignore_unknown); + + if (rpm.empty ()) + rpm.emplace_back (repository_manifest ()); // Add the base repository. } catch (const io_error& e) { -- cgit v1.1