This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=8a45c914095bcb19a873b20099e161efe3237bfc

commit 8a45c914095bcb19a873b20099e161efe3237bfc
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Tue Jul 24 00:47:01 2018 +0200

    dpkg-buildpackage: Add new --no-post-clean option
    
    This makes it possible to select the current default behavior.
---
 debian/changelog             | 2 ++
 man/dpkg-buildpackage.man    | 5 +++++
 scripts/dpkg-buildpackage.pl | 3 +++
 3 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1a1dbe0c8..8d449738a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -76,6 +76,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
   * Use Synopsis instead of Summary for the short Description, to unify the
     nomenclature and to make it more descriptive. Add a new binary:Synopsis
     virtual field to dpkg-query show format.
+  * Add new dpkg-buildpackage --no-post-clean option, to be able to explicitly
+    select the current default behavior.
   * Architecture support:
     - Add support for riscv64 CPU. Closes: #822914
       Thanks to Manuel A. Fernandez Montecelo <m...@debian.org>
diff --git a/man/dpkg-buildpackage.man b/man/dpkg-buildpackage.man
index 906351100..4b3256e4b 100644
--- a/man/dpkg-buildpackage.man
+++ b/man/dpkg-buildpackage.man
@@ -295,6 +295,11 @@ Clean the source tree (using
 .BR "debian/rules clean" )
 after the package has been built (long option since dpkg 1.18.8).
 .TP
+.BR \-\-no\-post\-clean
+Do not clean the source tree after the package has been built
+(since dpkg 1.19.1).
+This is the default behavior.
+.TP
 .BR \-r ", " \-\-root\-command= \fIgain-root-command\fP
 When
 .B dpkg\-buildpackage
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 460153c9d..1eabd13d2 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -72,6 +72,7 @@ sub usage {
   -S                          source-only, no binary files.
   -nc, --no-pre-clean         do not pre clean source tree (implies -b).
        --pre-clean            pre clean source tree (default).
+      --no-post-clean         do not post clean source tree (default).
   -tc, --post-clean           clean source tree when finished.
   -D                          check build dependencies and conflicts (default).
   -d                          do not check build dependencies and conflicts.
@@ -294,6 +295,8 @@ while (@ARGV) {
        push @source_opts, $_; # passed to dpkg-source
     } elsif (/^-tc$/ or /^--post-clean$/) {
         $postclean = 1;
+    } elsif (/^--no-post-clean$/) {
+        $postclean = 0;
     } elsif (/^-t$/ or /^--host-type$/) {
        $host_type = shift; # Order DOES matter!
     } elsif (/^-t(.*)$/ or /^--host-type=(.*)$/) {

-- 
Dpkg.Org's dpkg

Reply via email to