[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: t/runtests: Fix a perl warning



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

nthykier pushed a commit to branch master
in repository lintian.

commit b969e2d7efcbd9eefa45d0ae393988cccde3d39a
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Apr 9 10:48:29 2016 +0000

    t/runtests: Fix a perl warning
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/runtests b/t/runtests
index b040e17..ffec313 100755
--- a/t/runtests
+++ b/t/runtests
@@ -394,8 +394,8 @@ sub test_package {
             ['--exclude=debian/changelog']);
 
         foreach my $tfile (@{ $TEMPLATES{$suite} }) {
-            my $may_fill = $regen_template{$tfile}
-              or not -e "$targetdir/$tfile";
+            my $may_fill = $regen_template{$tfile};
+            $may_fill = 1 if not -e "$targetdir/$tfile";
             if ($may_fill and -f "$targetdir/${tfile}.in") {
                 fill_in_tmpl("$targetdir/$tfile", $testdata);
                 unlink("$targetdir/${tfile}.in");

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


Reply to: