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

[lintian] 01/07: gir: Only treat *.gir files in usr/share/gir-1.0 as GIR



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

lamby pushed a commit to branch master
in repository lintian.

commit e884be9c48bd4fcf90a71597383f6b3eb4828ff0
Author: Simon McVittie <smcv@debian.org>
Date:   Thu Nov 2 14:50:04 2017 +0000

    gir: Only treat *.gir files in usr/share/gir-1.0 as GIR
    
    gir-1.2.rnc, a RELAX NG schema, is in this directory but is not itself
    a GIR file.
    
    Signed-off-by: Simon McVittie <smcv@debian.org>
---
 checks/gir.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/checks/gir.pm b/checks/gir.pm
index 59d7e40..b64d195 100644
--- a/checks/gir.pm
+++ b/checks/gir.pm
@@ -69,7 +69,10 @@ sub _run_binary {
     $madir = '${DEB_HOST_MULTIARCH}' unless defined $madir;
 
     if (my $xmldir = $info->index_resolved_path('usr/share/gir-1.0/')) {
-        push @girs, $xmldir->children;
+        foreach my $child ($xmldir->children) {
+            next unless $child =~ m/\.gir$/;
+            push @girs, $child;
+        }
     }
 
     if (my $dir = $info->index_resolved_path('usr/lib/girepository-1.0/')) {

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


Reply to: