diff options
author | Guillem Jover <guillem@debian.org> | 2016-04-06 17:33:26 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-05-02 04:03:19 +0200 |
commit | dd064b2138478d9a53beefa7a873425d1738e4cb (patch) | |
tree | 24a466a4a588b614f3f8bec7de4f9c887f16cc1f /scripts/dpkg-buildpackage.pl | |
parent | 9c9fc468fe445bf7a531c89135bc06d66ced58dc (diff) | |
download | dpkg-dd064b2138478d9a53beefa7a873425d1738e4cb.tar.gz |
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.
Diffstat (limited to 'scripts/dpkg-buildpackage.pl')
-rwxr-xr-x | scripts/dpkg-buildpackage.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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); |