diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-07 13:23:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-07 13:23:57 +0300 |
commit | dbf982e9994db49a3a6645a2a0cf79656a0d9b34 (patch) | |
tree | 4da6ebab41625d88292c48b50a5ccf66a6422211 /load | |
parent | 9f936067f5eb65b2f45f8be0546eb1f975c8aae0 (diff) |
Fix loader to add base repository manifest implicitly if repositories.manifest contains no repository manifests
Diffstat (limited to 'load')
-rw-r--r-- | load/load.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |