summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Joachim <svenjoac@gmx.de>2017-07-01 16:52:52 +0200
committerNiels Thykier <niels@thykier.net>2017-07-03 14:44:05 +0000
commit1b2f59ad1a9d9748d6e30e16ce41251ffcaadc50 (patch)
treeda788cfbebaaba9c11c379c901728959368c3b36
parent24f2eda84eb62fa7df51fbc554c4f5fc57a565a3 (diff)
downloaddebhelper-1b2f59ad1a9d9748d6e30e16ce41251ffcaadc50.tar.gz
dh_compress: Remove target before creating fixup symlink
The target might already exist, possible because it had been created by dh_link before. Regression introduced by the switch to make_symlink_raw_target in commit ee8fd59af61fa4739cdd536ecbb492cc8520df40. Signed-off-by: Niels Thykier <niels@thykier.net>
-rw-r--r--debian/changelog2
-rwxr-xr-xdh_compress2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 0723b270..385a33a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ debhelper (10.6.2) UNRELEASED; urgency=medium
* Refactor test suite and support running tests in parallel.
* Add a test case for #866570.
+ * dh_compress: Apply patch from Sven Joachim to fix a
+ regression in 10.5.1. (Closes: #866713)
-- Niels Thykier <niels@thykier.net> Mon, 03 Jul 2017 14:39:11 +0000
diff --git a/dh_compress b/dh_compress
index 89c23f8a..21503c6a 100755
--- a/dh_compress
+++ b/dh_compress
@@ -212,7 +212,7 @@ on_pkgs_in_parallel {
my ($directory) = $link =~ m:(.*)/:;
my $linkval = readlink($link);
if (! -e "$directory/$linkval" && -e "$directory/$linkval.gz") {
- rm_files($link);
+ rm_files($link, "$link.gz");
make_symlink_raw_target("$linkval.gz","$link.gz");
delete $links{$link};
$changed++;