diff options
-rw-r--r-- | bpkg/utility.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index cb19ae7..625348b 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -99,7 +99,8 @@ namespace bpkg { try { - f.complete ().normalize (); + if (!f.complete ().normalized ()) + f.normalize (); } catch (const invalid_path& e) { @@ -118,7 +119,8 @@ namespace bpkg { try { - d.complete ().normalize (); + if (!d.complete ().normalized ()) + d.normalize (); } catch (const invalid_path& e) { |