chiark / gitweb /
dgit: unrepres. changes: Tolerate deletion of executable files
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Jul 2017 10:28:50 +0000 (11:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Jul 2017 11:47:01 +0000 (12:47 +0100)
commit242ba73109ae30e7d8849b01f0c668b87d4f4d63
tree16185417a19cfde848ce8f5d03109d8c1a50f6cc
parenta4d27ce9d75fc04b74daf8dfc93f5107c2b96778
dgit: unrepres. changes: Tolerate deletion of executable files

We don't care what the old mode was; if we tell dpkg-source to record
the deletion it can do so.

But we do care that it was a file.  Experimentally, dpkg-source on
stretch ignores attempts to delete symlinks.

The removal of the check for $newmode has no functional change,
because in this context we know that $newmode is all 0s.  If it
wasn't, we would have been in "both old and new files exist", above.
So that limb of the test will never match and should be removed.

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