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

[lintian] 01/01: c/shared-libs: Test deps from symbols without " #MINVER#"



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

nthykier pushed a commit to branch master
in repository lintian.

commit d7762ab5b42ddc14ef23b450ba6c79eaf6e2e036
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Oct 11 11:18:39 2014 +0200

    c/shared-libs: Test deps from symbols without " #MINVER#"
    
    The "shared-libs" check has had a latent bug where it relies on
    L::Relation misparsing "pkg #MINVER#" as "pkg".  This is now fixed by
    stripping " #MINVER#" before handing it to implies.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/shared-libs.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/checks/shared-libs.pm b/checks/shared-libs.pm
index f1a6ff8..a69c8df 100644
--- a/checks/shared-libs.pm
+++ b/checks/shared-libs.pm
@@ -599,6 +599,7 @@ sub run {
         my %seen;
         @symbols_depends = grep { !$seen{$_}++ } @symbols_depends;
         for my $depend (@symbols_depends) {
+            $depend =~ s/ \#MINVER\#$//;
             unless ($provides->implies($depend)) {
                 tag 'symbols-declares-dependency-on-other-package', $depend;
             }

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


Reply to: