From 7b3d5890037484a6ee4573744869f28301902a8b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Aug 2024 12:17:27 +0200 Subject: Merging upstream version 13.17. Signed-off-by: Daniel Baumann --- dh_installdeb | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) (limited to 'dh_installdeb') diff --git a/dh_installdeb b/dh_installdeb index f9e2452..09d0fbb 100755 --- a/dh_installdeb +++ b/dh_installdeb @@ -247,7 +247,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # For udebs, only do the postinst, and no #DEBHELPER#. # Udebs also support menutest and isinstallable scripts. foreach my $script (qw{postinst menutest isinstallable}) { - my $f=pkgfile($package,$script); + my $f = pkgfile( + { + 'named' => 0, + 'support-architecture-restriction' => 0, + }, + $package, + $script, + ); if ($f) { install_prog($f, "$tmp/DEBIAN/$script"); } @@ -257,7 +264,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) { next; } - my $maintscriptfile=pkgfile($package, "maintscript"); + my $maintscriptfile = pkgfile( + { + 'named' => 0, + 'support-architecture-restriction' => 0, + }, + $package, + "maintscript", + ); my @special_conffiles_entries; if ($maintscriptfile) { if (compat(9)) { @@ -320,13 +334,18 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } # Install non-executable files - my @non_exec_files; - # Removed in compat 12. - push(@non_exec_files, 'conffiles'); + my @non_exec_files = qw(conffiles); # In compat 10, we let dh_makeshlibs handle "shlibs". push(@non_exec_files, 'shlibs') if compat(9); foreach my $file (@non_exec_files) { - my $f=pkgfile($package,$file); + my $f = pkgfile( + { + 'named' => 0, + 'support-architecture-restriction' => 0, + }, + $package, + $file, + ); if ($f) { install_file($f, "$tmp/DEBIAN/$file"); } @@ -360,7 +379,14 @@ sub install_triggers { my ($package, $tmp) = @_; my $generated = generated_file($package, 'triggers', 0); my @sources = grep { -f $_ } ( - pkgfile($package, 'triggers'), + pkgfile( + { + 'named' => 0, + 'support-architecture-restriction' => 0, + }, + $package, + 'triggers' + ), $generated, ); my $target = "$tmp/DEBIAN/triggers"; -- cgit v1.2.3