summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-07-24 00:33:01 +0200
committerGuillem Jover <guillem@debian.org>2018-07-24 14:51:53 +0200
commit48c809f7c8e1949519c209c6ec74a6e2db4fd164 (patch)
treecc9d5e56d6744778e7071dfc158b09a79065b5e6
parentd5374bc618310917557daa9c9ac2f4930515a0b2 (diff)
downloaddpkg-48c809f7c8e1949519c209c6ec74a6e2db4fd164.tar.gz
dpkg-buildpackage: Rename $cleansource to $postclean
Makes the purpose of the variable clear.
-rwxr-xr-xscripts/dpkg-buildpackage.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 5b9fd441f..e8892269f 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -148,7 +148,7 @@ my @debian_rules = ('debian/rules');
my @rootcommand = ();
my $signcommand;
my $noclean;
-my $cleansource;
+my $postclean = 0;
my $parallel;
my $parallel_force = 0;
my $checkbuilddep = 1;
@@ -293,7 +293,7 @@ while (@ARGV) {
} elsif (/^-(?:s[nsAkurKUR]|[zZ].*|i.*|I.*)$/) {
push @source_opts, $_; # passed to dpkg-source
} elsif (/^-tc$/ or /^--post-clean$/) {
- $cleansource = 1;
+ $postclean = 1;
} elsif (/^-t$/ or /^--host-type$/) {
$host_type = shift; # Order DOES matter!
} elsif (/^-t(.*)$/ or /^--host-type=(.*)$/) {
@@ -599,9 +599,9 @@ $changes->parse($changes_fh, g_('parse changes file'));
$changes->save($chg);
close $changes_fh or subprocerr(g_('dpkg-genchanges'));
-run_hook('postclean', $cleansource);
+run_hook('postclean', $postclean);
-if ($cleansource) {
+if ($postclean) {
run_rules_cond_root('clean');
}