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

[lintian] 01/01: c/control-file: Fix inverted boolean logic



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

nthykier pushed a commit to branch master
in repository lintian.

commit 368fe87d20effe729fad8638925577d7d63428fd
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Jan 7 21:14:05 2018 +0000

    c/control-file: Fix inverted boolean logic
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/control-file.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/control-file.pm b/checks/control-file.pm
index ea995c0..1799427 100644
--- a/checks/control-file.pm
+++ b/checks/control-file.pm
@@ -387,7 +387,7 @@ sub run {
             my $pkg = $proc->pkg_name;
             foreach my $file ($proc->info->sorted_index) {
                 my $owner = $file->owner . ':' . $file->group;
-                next if $owner ne 'root:root';
+                next if $owner eq 'root:root';
                 tag 'should-specify-rules-requires-root', $pkg, $file,
                   "($owner)";
                 last BINARY;

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


Reply to: