From: Ian Jackson Date: Sat, 24 Aug 2013 17:44:49 +0000 (+0100) Subject: `3.0 (quilt)' fixup creates .pc/applied-patches since modern dpkg-source creates... X-Git-Tag: debian/0.9~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=dc3ada23508f1c40692e15fcb0cf5e06fd541104 `3.0 (quilt)' fixup creates .pc/applied-patches since modern dpkg-source creates it even though old ones didn't always. --- diff --git a/debian/changelog b/debian/changelog index 84cf7dec..b1a7cc5c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 c0c7b8df..3f9dd973 100755 --- 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(); }