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

[lintian] 02/02: Emit if we have more than 1 compat level and not when we have a compat level more than 1.



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

lamby pushed a commit to branch master
in repository lintian.

commit ab7500083b87c4fcd958ab751bb1ccb6e524c773
Author: Chris Lamb <lamby@debian.org>
Date:   Sat Feb 17 21:41:14 2018 +0000

    Emit if we have more than 1 compat level and not when we have a compat level more than 1.
---
 checks/debhelper.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/checks/debhelper.pm b/checks/debhelper.pm
index 3eead3d..3c65281 100644
--- a/checks/debhelper.pm
+++ b/checks/debhelper.pm
@@ -281,8 +281,8 @@ sub run {
     # for brace expansion.
     if ($compat_file and $compat_file->is_open_ok) {
         my $compat_file = $compat_file->file_contents;
-        ($compat) = split(/\n/, $compat_file);
-        tag 'debhelper-compat-file-contains-multiple-levels' if $compat > 1;
+        ($compat) = my @lines = split(/\n/, $compat_file);
+        tag 'debhelper-compat-file-contains-multiple-levels' if @lines > 1;
         strip($compat);
         if ($compat ne '') {
             my $compat_value = $compat;

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


Reply to: