aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/rep-info.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/bpkg/rep-info.cxx b/bpkg/rep-info.cxx
index 35b06ca..1187a11 100644
--- a/bpkg/rep-info.cxx
+++ b/bpkg/rep-info.cxx
@@ -174,14 +174,13 @@ namespace bpkg
}
}
- // Append the latest base repository manifest.
+ // Append the latest base repository manifest or an empty base if
+ // there are no fragments.
//
- // Note that there must be at least one fragment.
- //
- assert (!rfd.fragments.empty ());
-
rms.push_back (
- find_base_repository (rfd.fragments.back ().repositories));
+ !rfd.fragments.empty ()
+ ? find_base_repository (rfd.fragments.back ().repositories)
+ : repository_manifest ());
auto serialize = [&rms] (ostream& os, const string& name)
{