chiark / gitweb /
Do not fail to do some important quilt processing in some --quilt modes.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Sep 2016 17:35:00 +0000 (18:35 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Sep 2016 17:35:04 +0000 (18:35 +0100)
Make `madformat' mean precisely `is 3.0 (quilt)' and change the two
call sites which wanted to check the quilt mode too.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index c493eddfd7cbdd97d8a732abb7afbdecc3ec1ab0..5ecee0387e5bcd3140403fe96b244fdf898edbe8 100644 (file)
@@ -51,6 +51,8 @@ dgit (1.5~~) unstable; urgency=medium
   * When synthesing a commit from a .dsc from the archive, stop
     internal git reset from printing a confusing message about HEAD.
   * Turn off git gc in the private working areas.
+  * Do not fail to do some important quilt processing in some
+    --quilt modes.
   * Fix a couple of bugs in error reporting.
 
   Test suite:
diff --git a/dgit b/dgit
index 0cf854d3e9b98f48767068cb756be50c64e68b1f..d8ab871ac6bf1004fcc041c71af09368782eaade 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -150,6 +150,8 @@ sub debiantag_maintview ($$) {
     return "$distro/$v";
 }
 
+sub madformat ($) { $_[0] eq '3.0 (quilt)' }
+
 sub lbranch () { return "$branchprefix/$csuite"; }
 my $lbranch_re = '^refs/heads/'.$branchprefix.'/([^/.]+)$';
 sub lref () { return "refs/heads/".lbranch(); }
@@ -2346,7 +2348,7 @@ sub get_source_format () {
     return ($_, \%options);
 }
 
-sub madformat ($) {
+sub madformat_wantfixup ($) {
     my ($format) = @_;
     return 0 unless $format eq '3.0 (quilt)';
     our $quilt_mode_warned;
@@ -2750,7 +2752,7 @@ END
     my $dgithead = $actualhead;
     my $maintviewhead = undef;
 
-    if (madformat($format)) {
+    if (madformat_wantfixup($format)) {
        # user might have not used dgit build, so maybe do this now:
        if (quiltmode_splitbrain()) {
            my $upstreamversion = $clogp->{Version};
@@ -3691,7 +3693,7 @@ sub quiltify ($$$$) {
 
 sub build_maybe_quilt_fixup () {
     my ($format,$fopts) = get_source_format;
-    return unless madformat $format;
+    return unless madformat_wantfixup $format;
     # sigh
 
     check_for_vendor_patches();