From 82ea0bd107006cb574d8b19a4e457fb5a4c8caf0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Sep 2021 10:42:09 +0200 Subject: Add --keep-config pkg-disfigure option --- bpkg/pkg-build.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bpkg/pkg-build.cxx') diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index 4466e76..d8e7b3b 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -5170,8 +5170,8 @@ namespace bpkg check_any_available (cdb, t, &dr); } - // We will keep the output directory only if the external package is - // replaced with an external one (see above for details). + // We will keep the output directory only if the external package + // is replaced with an external one (see above for details). // bool keep_out (o.keep_out () && sp->external ()); @@ -6728,7 +6728,8 @@ namespace bpkg // transaction t (pdb, !simulate /* start */); - // Reset the flag if the package being unpacked is not an external one. + // Reset the keep_out flag if the package being unpacked is not an + // external one. // if (p.keep_out && !simulate) { @@ -6760,7 +6761,7 @@ namespace bpkg // Commits the transaction. // - pkg_disfigure (o, pdb, t, sp, !p.keep_out, simulate); + pkg_disfigure (o, pdb, t, sp, !p.keep_out, true, simulate); r = true; -- cgit v1.1