[debsums] 03/06: Actually run debsums from the current directory if present

Axel Beckert abe at deuxchevaux.org
Thu Mar 26 00:53:55 UTC 2015


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

abe pushed a commit to branch master
in repository debsums.

commit c3fdbcf33267d028c896507c1edb822d82ce88f2
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu Mar 26 01:31:01 2015 +0100

    Actually run debsums from the current directory if present
---
 t/debsums.t | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/debsums.t b/t/debsums.t
index 5be9f21..e0f25db 100644
--- a/t/debsums.t
+++ b/t/debsums.t
@@ -18,7 +18,10 @@ delete $ENV{PATH};
 # First check if we are testing a source package (debsums in current
 # directory) or an installed package (full path).
 foreach my $cmd (qw(./debsums /usr/bin/debsums)) {
-    $command = $cmd if -x $cmd;
+    if (-x $cmd) {
+        $command = $cmd;
+        last;
+    }
 }
 ok($command, "Command debsums found at $command");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list