The following commit has been merged in the master branch:
commit 6ace3ae325d35f520f3f5e28854051741b0fef80
Author: Niels Thykier <[email protected]>
Date:   Wed Jul 11 14:13:40 2012 +0200

    L::Relation: Fix error with bit flag "and" operation
    
    Signed-off-by: Niels Thykier <[email protected]>

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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to