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

[lintian] 05/07: gir: Replace underscore in typelib name with hyphen in package name



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

lamby pushed a commit to branch master
in repository lintian.

commit 0d88c6cd34bf6ba4eefbb972ae53eab8d26c45a5
Author: Simon McVittie <smcv@debian.org>
Date:   Sun Nov 12 13:22:27 2017 +0000

    gir: Replace underscore in typelib name with hyphen in package name
    
    v_sim-3.7.gir in the v-sim package would otherwise produce an
    invalid package name.
    
    Signed-off-by: Simon McVittie <smcv@debian.org>
---
 checks/gir.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/checks/gir.pm b/checks/gir.pm
index 90d4ae1..eb4ab5d 100644
--- a/checks/gir.pm
+++ b/checks/gir.pm
@@ -112,6 +112,7 @@ sub _run_binary {
   GIR: foreach my $gir (@girs) {
         my $expected = 'gir1.2-' . lc($gir->basename);
         $expected =~ s/\.gir$//;
+        $expected =~ tr/_/-/;
         my $version = $info->field('version');
 
         foreach my $bin ($group->get_binary_processables) {
@@ -131,6 +132,7 @@ sub _run_binary {
     foreach my $typelib (@typelibs) {
         my $expected = 'gir1.2-' . lc($typelib->basename);
         $expected =~ s/\.typelib$//;
+        $expected =~ tr/_/-/;
         if ($pkg ne $expected
             and not $info->relation('provides')->implies($expected)) {
             tag('typelib-package-name-does-not-match', $typelib, $expected);

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


Reply to: