chiark / gitweb /
`3.0 (quilt)' fixup creates .pc/applied-patches since modern dpkg-source creates...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Aug 2013 17:44:49 +0000 (18:44 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Aug 2013 17:44:49 +0000 (18:44 +0100)
debian/changelog
dgit

index 84cf7dec2cce2376a9e0091116d14ec126269da4..b1a7cc5cf8d0d985c95a9132c0e7526043d722b8 100644 (file)
@@ -7,6 +7,8 @@ dgit (0.9) unstable; urgency=low
   * Change our .dsc field name to `Dgit'.  Relevant to #720201.
   * Fix bug handling our synthetic merges when we see them in
     the remote suite branch.
+  * `3.0 (quilt)' fixup creates .pc/applied-patches since modern
+    dpkg-source creates it even though old ones didn't always.
 
  --
 
diff --git a/dgit b/dgit
index c0c7b8df4d23cfec766dd346035964d2b7715d85..3f9dd97375a6cf00a1a22276fe8ee16f5dd24645 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1016,6 +1016,13 @@ END
        local $ENV{$fakeeditorenv} = cmdoutput qw(realpath --), $descfn;
        runcmd_ordryrun @dpkgsource, qw(--commit .), $patchname;
     }
+
+    if (!open P, '>', ".pc/applied-patches") {
+       $!==&ENOENT or die $!;
+    } else {
+       close P;
+    }
+
     commit_quilty_patch();
 }