From dd064b2138478d9a53beefa7a873425d1738e4cb Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 6 Apr 2016 17:33:26 +0200 Subject: Dpkg::Build::Types: Add new build_has_any function Fix regression introduced in commit d122537d6df899dc1d0599e0a24ee3b27f0d9e18. These instances need to trigger whenever there is any bit set. --- scripts/dpkg-buildpackage.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/dpkg-buildpackage.pl') diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl index cbfce1a7c..8ad12c820 100755 --- a/scripts/dpkg-buildpackage.pl +++ b/scripts/dpkg-buildpackage.pl @@ -504,7 +504,7 @@ if (build_has(BUILD_SOURCE)) { chdir($dir) or syserr("chdir $dir"); } -run_hook('build', build_has(BUILD_BINARY)); +run_hook('build', build_has_any(BUILD_BINARY)); if ($buildtarget ne 'build' and scalar(@debian_rules) == 1) { # Verify that build-{arch,indep} are supported. If not, fallback to build. @@ -524,7 +524,7 @@ if ($buildtarget ne 'build' and scalar(@debian_rules) == 1) { } } -if (build_has(BUILD_BINARY)) { +if (build_has_any(BUILD_BINARY)) { withecho(@debian_rules, $buildtarget); run_hook('binary', 1); withecho(@rootcommand, @debian_rules, $binarytarget); -- cgit v1.2.3