diff options
author | Guillem Jover <guillem@debian.org> | 2018-07-24 00:47:01 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-07-24 14:51:53 +0200 |
commit | 8a45c914095bcb19a873b20099e161efe3237bfc (patch) | |
tree | 12907947c9f22869c93074960939227b8c5944c2 | |
parent | 4014981b968a8e3c734d5113ce7a323d3ace13ad (diff) | |
download | dpkg-8a45c914095bcb19a873b20099e161efe3237bfc.tar.gz |
dpkg-buildpackage: Add new --no-post-clean option
This makes it possible to select the current default behavior.
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | man/dpkg-buildpackage.man | 5 | ||||
-rwxr-xr-x | scripts/dpkg-buildpackage.pl | 3 |
3 files changed, 10 insertions, 0 deletions
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 <mafm@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=(.*)$/) { |