From 242ba73109ae30e7d8849b01f0c668b87d4f4d63 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Jul 2017 11:28:50 +0100 Subject: 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 --- tests/tests/unrepresentable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tests') diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable index 206af86..80b5a05 100755 --- a/tests/tests/unrepresentable +++ b/tests/tests/unrepresentable @@ -30,7 +30,7 @@ badly-1 orig-symlink 'modified symlink' git add orig-symlink badly-2 -badly-1 orig-symlink 'non-default mode or type' +badly-1 orig-symlink 'deletion of symlink' git rm -f orig-symlink badly-2 -- cgit v1.2.3