[debhelper-devel] [debhelper] 05/07: dh: Fix bug with calling optional commands
Niels Thykier
nthykier at moszumanska.debian.org
Sat Aug 22 17:35:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
nthykier 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/debhelper/debhelper.git
More information about the debhelper-devel
mailing list