The following commit has been merged in the master branch:
commit 3448a47b8908646658ca7051a75447a56e043900
Author: Niels Thykier <[email protected]>
Date:   Tue Jan 22 10:02:39 2013 +0100

    L::C::Package: Add missing "exists"
    
    Signed-off-by: Niels Thykier <[email protected]>

diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index 39f94a1..49f9397 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -362,7 +362,7 @@ sub _fetch_index_data {
     $self->{"sorted_$field"} = \@sorted;
     close $idx;
     close $num_idx if $num_idx;
-    return $self->{$field}->{$file} if $self->{$field}->{$file};
+    return $self->{$field}->{$file} if exists $self->{$field}->{$file};
     return;
 }
 

-- 
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