diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-30 23:24:52 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-06 11:46:55 +0300 |
commit | 22165c649ca2c5ef216ae3f99fbfb2dc0fff99ab (patch) | |
tree | bcf026fd8d2e036d061fa38aed3b71ec481e2455 /bpkg/bpkg.cxx | |
parent | ad8d50be4016e68a4ab8d765bd9b45a9fdae1a6d (diff) |
Make pkg-build to accept multiple current configurations
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r-- | bpkg/bpkg.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 49f4055..953a5ad 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -145,6 +145,17 @@ namespace bpkg main (int argc, char* argv[]); } +// Note that pkg-build command supports multiple configurations and +// initializes multiple temporary directories itself. This function is, +// however, required since pkg_build_options::directory() returns a vector and +// the below template function cannot be used. +// +static inline const dir_path& +cfg_dir (const pkg_build_options*) +{ + return empty_dir_path; +} + // Get -d|--directory value if the option class O has it and empty path // otherwise. Note that for some commands (like rep-info) that allow // specifying empty path, the returned value is a string, not a dir_path. |