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

[lintian] 01/01: Raise useless-autogenerated-doxygen-file only if doxygen.png is present



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

broucaries-guest pushed a commit to branch master
in repository lintian.

commit fb08eab891a78f0278d5dc814e9dc8ec8e4d10e9
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Mon Sep 8 11:12:10 2014 +0200

    Raise useless-autogenerated-doxygen-file only if doxygen.png is present
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/files.pm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/checks/files.pm b/checks/files.pm
index 921dfe9..4bf6c5c 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -27,7 +27,7 @@ use Lintian::Data;
 use Lintian::Output qw(warning);
 use Lintian::Tags qw(tag);
 use Lintian::Util qw(drain_pipe fail is_string_utf8_encoded open_gz
-  signal_number2name strip);
+  signal_number2name strip normalize_pkg_path);
 use Lintian::SlidingWindow;
 
 my $FONT_PACKAGES = Lintian::Data->new('files/fonts', qr/\s++/);
@@ -1151,7 +1151,9 @@ sub run {
         # doxygen map + md5sum
         if (   $fname =~ m,^usr/share/doc/$ppkg/[^/]+/.+\.md5$,
             or $fname =~ m,^usr/share/doc/$ppkg/[^/]+/.+\.map$,) {
-            tag 'useless-autogenerated-doxygen-file', $file;
+            if($info->index($file->dirname.'doxygen.png')) {
+                tag 'useless-autogenerated-doxygen-file', $file;
+            }
         }
 
         # ---------------- pyshared-data

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


Reply to: