diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-12 19:21:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-12 19:37:35 +0300 |
commit | ee16762d8435ec1a6dfe4a82655cde5624bb2c38 (patch) | |
tree | 338c5488966c1e7d35f5afa20e78f153443b1b32 /bpkg/pkg-configure.cxx | |
parent | 17ea04afcce1af129cac9dd2f840799a6e8b50eb (diff) |
Add support for shallow fetch
Diffstat (limited to 'bpkg/pkg-configure.cxx')
-rw-r--r-- | bpkg/pkg-configure.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx index c839d42..aaa426f 100644 --- a/bpkg/pkg-configure.cxx +++ b/bpkg/pkg-configure.cxx @@ -127,16 +127,9 @@ namespace bpkg ? *p->src_root : c / *p->src_root); - const repository_location& rl (p->repository); - - // For external packages call the output directory <pkg>, rather than - // <pkg>-<ver>. - // - dir_path out_root ( - (!rl.empty () && rl.directory_based ()) || // pkg-unpack <name>/<version> - ( rl.empty () && !p->archive) // pkg-unpack --existing <dir> - ? c / dir_path (p->name) - : c / dir_path (p->name + "-" + p->version.string ())); + dir_path out_root (p->external () + ? c / dir_path (p->name) + : c / dir_path (p->name + "-" + p->version.string ())); l4 ([&]{trace << "src_root: " << src_root << ", " << "out_root: " << out_root;}); |