aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbpkg/manifest.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/libbpkg/manifest.cxx b/libbpkg/manifest.cxx
index a88ea41..e93f0cb 100644
--- a/libbpkg/manifest.cxx
+++ b/libbpkg/manifest.cxx
@@ -2367,10 +2367,11 @@ namespace bpkg
"mismatching repository types: " + to_string (*t) + " specified, " +
to_string (*tu.type) + " in URL scheme");
- *this = repository_location (move (tu.url),
- tu.type ? *tu.type :
- t ? *t :
- guess_type (tu.url, local));
+ repository_type et (tu.type ? *tu.type :
+ t ? *t :
+ guess_type (tu.url, local));
+
+ *this = repository_location (move (tu.url), et);
}
repository_location::