[debhelper-devel] [debhelper] 01/01: dh_compress: Use ln -f for creating hardlinks
Niels Thykier
nthykier at moszumanska.debian.org
Wed Jul 12 20:10:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit b6c775550ba14a8813100709153897949c8044c3
Author: Niels Thykier <niels at thykier.net>
Date: Wed Jul 12 20:09:05 2017 +0000
dh_compress: Use ln -f for creating hardlinks
Signed-off-by: Niels Thykier <niels at thykier.net>
---
debian/changelog | 3 +++
dh_compress | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index f6525fd..1ba1c74 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,9 @@ debhelper (10.6.4) UNRELEASED; urgency=medium
(Closes: #867846)
* Dh_lib.pm: Rewrite reset_perm_and_owner to it does chmod + chown
using perl built-ins rather than forking+exec.
+ * dh_compress: Apply patch from Sven Joachim to make dh_compress
+ gracefully handle hardlinks, where the target files already
+ exists. (Closes: #867881)
-- Niels Thykier <niels at thykier.net> Sun, 09 Jul 2017 12:30:20 +0000
diff --git a/dh_compress b/dh_compress
index b5b1fb3..a0000d0 100755
--- a/dh_compress
+++ b/dh_compress
@@ -196,7 +196,7 @@ on_pkgs_in_parallel {
# Remove old file.
rm_files($_);
# Make new hardlink.
- doit("ln","$hardlinks{$_}.gz","$_.gz");
+ doit("ln","-f","$hardlinks{$_}.gz","$_.gz");
}
verbose_print("cd '$olddir'");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list