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=48c809f7c8e1949519c209c6ec74a6e2db4fd164

commit 48c809f7c8e1949519c209c6ec74a6e2db4fd164
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jul 24 00:33:01 2018 +0200

    dpkg-buildpackage: Rename $cleansource to $postclean
    
    Makes the purpose of the variable clear.
---
 scripts/dpkg-buildpackage.pl | 8 ++++----
 1 file 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');
 }
 

-- 
Dpkg.Org's dpkg

Reply via email to