aboutsummaryrefslogtreecommitdiff
path: root/libbrep
diff options
context:
space:
mode:
Diffstat (limited to 'libbrep')
-rw-r--r--libbrep/common.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbrep/common.hxx b/libbrep/common.hxx
index 7860876..df838a7 100644
--- a/libbrep/common.hxx
+++ b/libbrep/common.hxx
@@ -229,7 +229,9 @@ namespace brep
#pragma db map type(repository_location) as(string) \
to((?).url ().string ()) \
- from(brep::repository_location (brep::repository_url (?), \
+ from(brep::repository_location ((?).empty () \
+ ? bpkg::repository_url () \
+ : brep::repository_url (?), \
brep::repository_type::pkg))
// Version comparison operators.