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

[SCM] Debian package checker branch, master, updated. 2.5.10-12-g6ace3ae



The following commit has been merged in the master branch:
commit 6ace3ae325d35f520f3f5e28854051741b0fef80
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jul 11 14:13:40 2012 +0200

    L::Relation: Fix error with bit flag "and" operation
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Relation.pm b/lib/Lintian/Relation.pm
index f5dbc94..1fe1c1d 100644
--- a/lib/Lintian/Relation.pm
+++ b/lib/Lintian/Relation.pm
@@ -806,7 +806,8 @@ sub visit {
         $against = $self->unparse ($relation) if $flags & VISIT_PRED_FULL;
         local $_ = $against;
         return $code->($against);
-    } elsif (($flags & VISIT_OR_CLAUSE_FULL) and $relation->[0] eq 'OR') {
+    } elsif (($flags & VISIT_OR_CLAUSE_FULL) == VISIT_OR_CLAUSE_FULL and
+             $relation->[0] eq 'OR') {
         my $against = $self->unparse ($relation);
         local $_ = $against;
         return $code->($against);

-- 
Debian package checker


Reply to: