aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-04-22 21:57:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-07-09 14:06:57 +0300
commit5d513688ae07d96910dd1eef83bdad4e9d780373 (patch)
tree402a87bbdb79a5a2392b714553e567465c3415c1 /bpkg/utility.cxx
parent50a5c7b14250dab7941e8b0a67dfe6c442d2c5a9 (diff)
Add support for linked configurations
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r--bpkg/utility.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx
index ef61870..40ae02c 100644
--- a/bpkg/utility.cxx
+++ b/bpkg/utility.cxx
@@ -117,6 +117,19 @@ namespace bpkg
return d;
}
+ dir_path
+ current_directory ()
+ {
+ try
+ {
+ return dir_path::current_directory ();
+ }
+ catch (const system_error& e)
+ {
+ fail << "unable to obtain current directory: " << e << endf;
+ }
+ }
+
bool stderr_term;
bool