[devscripts] 16/18: debuild: Only add --hook-* flags if a value exists for the hook

James McCoy jamessan at debian.org
Wed Nov 23 18:11:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository devscripts.

commit 65b01cf59ea5eaf066582f548108e97cdbee5bc2
Author: James McCoy <jamessan at debian.org>
Date:   Mon Nov 21 21:12:09 2016 -0500

    debuild: Only add --hook-* flags if a value exists for the hook
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 scripts/debuild.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/debuild.pl b/scripts/debuild.pl
index 003d9ce..9504f55 100755
--- a/scripts/debuild.pl
+++ b/scripts/debuild.pl
@@ -732,7 +732,7 @@ my %debuild2dpkg = (
 );
 
 for my $h_name (@hooks) {
-    if (exists $debuild2dpkg{$h_name}) {
+    if (exists $debuild2dpkg{$h_name} && $hook{$h_name}) {
 	push(@dpkg_opts,
 	    sprintf('--hook-%s=%s', $debuild2dpkg{$h_name}, $hook{$h_name}));
 	delete $hook{$h_name};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list