aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-02-22 00:58:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-15 19:15:55 +0300
commita791b1ce0fa2bc9859474fb6f7a9c0ff8cbd1d4a (patch)
tree3c9823a54e6e28a8c8f9fb281d82ad2a67c117ba /bpkg
parent755a99a7ebf24e00675e2f2e0f5184825ad74c4a (diff)
Port test.sh to testscript
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/types6
1 files changed, 4 insertions, 2 deletions
diff --git a/bpkg/types b/bpkg/types
index 1171444..cfe2add 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -90,12 +90,14 @@ namespace bpkg
//
namespace std
{
- // Custom path printing (with trailing slash for directories).
+ // Custom path printing (canonicalized, with trailing slash for directories).
//
inline ostream&
operator<< (ostream& os, const ::butl::path& p)
{
- return os << p.representation ();
+ string r (p.representation ());
+ ::butl::path::traits::canonicalize (r);
+ return os << r;
}
}