aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-30 10:00:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-30 10:00:23 +0200
commit3f403eb9b99181da0d0ab66d5ee6fc748f7fcf9c (patch)
tree614e433c6dd613512f066745b0abc0a793560e42
parenta2b084651909929d58f6b4bc0f3c742d87ee31f6 (diff)
Normalize package path in case location is ./
-rw-r--r--bpkg/rep-fetch.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx
index af07cb5..452392e 100644
--- a/bpkg/rep-fetch.cxx
+++ b/bpkg/rep-fetch.cxx
@@ -210,8 +210,9 @@ namespace bpkg
};
dir_path d (repo_dir / path_cast<dir_path> (*sm.location));
- path f (d / manifest_file);
+ d.normalize (); // In case location is './'.
+ path f (d / manifest_file);
if (!exists (f))
failure ("no manifest file");