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

[lintian] 01/01: c/infofiles.pm: Use is_open_ok as it is more correct



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

nthykier pushed a commit to branch master
in repository lintian.

commit 0f88e2b88535dd75e0eb564a2d860fb8427c9c65
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Sep 27 09:07:42 2014 +0200

    c/infofiles.pm: Use is_open_ok as it is more correct
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/infofiles.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/infofiles.pm b/checks/infofiles.pm
index 92fddd0..349b450 100644
--- a/checks/infofiles.pm
+++ b/checks/infofiles.pm
@@ -81,7 +81,7 @@ sub run {
         # If this is the main info file (no numeric extension). make
         # sure it has appropriate dir entry information.
         if ($fname !~ /-\d+\.gz/ && $file_info =~ /gzip compressed data/) {
-            if (!$file->is_valid_path) {
+            if (!$file->is_open_ok) {
                 # unsafe symlink, skip.  Actually, this should never
                 # be true as "$file_info" for symlinks will not be
                 # "gzip compressed data".  But for good measure.

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


Reply to: