diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-27 12:00:38 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-27 13:12:02 +0100 |
commit | 94f1626bbddaae07cb56b86dc83a5a5de34f642b (patch) | |
tree | 8902afc502e16361be4a54dc1ffe0652f70b2330 /dgit | |
parent | dbb093b1db7b27bf922f6ad58576cab4fbc342cf (diff) |
Also suppress spurious runs of the clean target when building using git-buildpackage.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2973,10 +2973,15 @@ sub cmd_build { sub cmd_gbp_build { my @dbp = @dpkgbuildpackage; massage_dbp_args \@dbp; - build_prep(); my @cmd = (qw(git-buildpackage -us -uc --git-no-sign-tags), "--git-builder=@dbp"); + if ($cleanmode eq 'dpkg-source') { + $suppress_clean = 1; + } else { + push @cmd, '--git-cleaner=true'; + } + build_prep(); unless (grep { m/^--git-debian-branch|^--git-ignore-branch/ } @ARGV) { canonicalise_suite(); push @cmd, "--git-debian-branch=".lbranch(); |