Package: debhelper Version: 12.2.3 Severity: wishlist Dear Maintainer,
I just realized, that following <package>.links file does not trigger
any errors:
/path/to/file /etc/foo
/path/to/another/file /etc/foo
Here is patch with regression test. No fix patch right now, sorry.
From 6d3abf0b9098025a5099118cfb93c3454c060818 Mon Sep 17 00:00:00 2001
From: Dmitry Bogatov <[email protected]>
Date: Sat, 10 Aug 2019 19:51:17 +0000
Subject: [PATCH] Add regression test for conflicting links
---
t/dh_link/01-basic.t | 3 +++
1 file changed, 3 insertions(+)
diff --git a/t/dh_link/01-basic.t b/t/dh_link/01-basic.t
index 88c8e49c..efcd682a 100755
--- a/t/dh_link/01-basic.t
+++ b/t/dh_link/01-basic.t
@@ -41,6 +41,9 @@ each_compat_subtest {
ok(run_dh_tool({ 'quiet' => 1 }, 'dh_link', 'usr/lib/foo',
'usr/lib/foo'));
ok(! -l "debian/debhelper/usr/lib/foo");
+ # Conflicting links.
+ ok(! run_dh_tool({ 'quiet' => 1}, 'dh_link', '/foo', '/etc/dest',
'/bar', '/etc/dest'));
+
# Make sure the link conversion didn't change any of the
# previously made links.
ok(readlink("debian/debhelper/usr/lib/bar"), "/etc/foo");
--
Note, that I send and fetch email in batch, once in a few days.
Please, mention in body of your reply when you add or remove recepients.
pgplP8NpD404Q.pgp
Description: PGP signature

