[Reproducible-commits] [debhelper] 17/56: dh: Fix bug with calling optional commands

Mattia Rizzolo mattia at mapreri.org
Sun Oct 4 17:06:15 UTC 2015


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

mapreri-guest pushed a commit to branch master
in repository debhelper.

commit ee516f3226ddff2e8a7c6cfd3004af2ac7a07c8c
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Aug 22 19:32:17 2015 +0200

    dh: Fix bug with calling optional commands
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dh b/dh
index e86a2a1..4cba226 100755
--- a/dh
+++ b/dh
@@ -972,10 +972,10 @@ sub optional_command {
 	foreach my $dir (split(':', $ENV{'PATH'})) {
 		if (open(my $h, '<', "$dir/$command")) {
 			close($h);
-			return 1;
+			return ($command);
 		}
 	}
-	return 0;
+	return;
 }
 
 sub extract_skipinfo {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git



More information about the Reproducible-commits mailing list