Control: tags -1 patch

Hi,

the problem is that the value of the substvar is read from a file and perl adds 
a newline at the end.
Attached patch removes this added newline using chomp.

Best regards,
Rogo
From ca16a57dfea8964905bce2361fce906df0cc8483 Mon Sep 17 00:00:00 2001
From: Rogo <rog...@proton.me>
Date: Sun, 12 Feb 2023 17:20:48 +0100
Subject: [PATCH] Remove trailing newline from abiversion

---
 debian/dh-addon-vdrplugin/dh_vdrplugin_depends | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/dh-addon-vdrplugin/dh_vdrplugin_depends b/debian/dh-addon-vdrplugin/dh_vdrplugin_depends
index 0ea3bb54..5be50ba6 100755
--- a/debian/dh-addon-vdrplugin/dh_vdrplugin_depends
+++ b/debian/dh-addon-vdrplugin/dh_vdrplugin_depends
@@ -43,6 +43,8 @@ no locale;
 open(my $abiversion_file, "</usr/share/vdr-dev/abi-version") or die "Could not read VDR's ABI version dependency";
 my @abiversion = <$abiversion_file>;
 close($abiversion_file);
+# remove trailing newline
+chomp($abiversion[-1]);
 
 verbose_print("Setting vdr:Depends=@abiversion");
 
-- 
2.39.1

Reply via email to