aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-13 17:33:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-14 15:13:22 +0200
commita5cc1656274d1978a85dd0abafc46c21b7f851d0 (patch)
tree393486154fd46dbb62ff4c22235d989a06822d8d /bpkg/fetch.cxx
parent263e6772cecb91cf26295c48f9ac3b0701ca4ab2 (diff)
Adapt to remote repository location relative path
Diffstat (limited to 'bpkg/fetch.cxx')
-rw-r--r--bpkg/fetch.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx
index ebff730..2ccda2c 100644
--- a/bpkg/fetch.cxx
+++ b/bpkg/fetch.cxx
@@ -467,10 +467,7 @@ namespace bpkg
static string
to_url (const string& host, uint16_t port, const path& file)
{
- //@@ Absolute path in URL: how is this going to work on Windows?
- // Change to relative: watch for empty path.
- //
- assert (file.absolute ());
+ assert (file.relative ());
string url ("http://");
url += host;
@@ -478,7 +475,7 @@ namespace bpkg
if (port != 0)
url += ":" + to_string (port);
- url += file.posix_string ();
+ url += "/" + file.posix_string ();
return url;
}