diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-19 14:26:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-19 14:27:24 +0300 |
commit | 3d4838d3706de2ba0045dc9f99a3dc96398def64 (patch) | |
tree | ece29423c4ece1139169a8b952914471593fe577 /bpkg/utility.cxx | |
parent | d3ef22615ba7d37be18c31b2fdd1bdb6be164939 (diff) |
Parse repositories and packages files for git repositories
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r-- | bpkg/utility.cxx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index 26716e8..252bdef 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -234,6 +234,32 @@ namespace bpkg } } + fdpipe + open_pipe () + { + try + { + return fdopen_pipe (); + } + catch (const io_error& e) + { + fail << "unable to open pipe: " << e << endf; + } + } + + auto_fd + open_dev_null () + { + try + { + return fdnull (); + } + catch (const io_error& e) + { + fail << "unable to open null device: " << e << endf; + } + } + dir_path exec_dir; void |