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

[lintian] 12/12: c/shared-libs: Use two-arg version of $info->field



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

nthykier pushed a commit to branch master
in repository lintian.

commit 88bb3b61ccb0187c9fab041e3b8b5ea2ccaf9a58
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Apr 22 18:32:52 2016 +0000

    c/shared-libs: Use two-arg version of $info->field
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/shared-libs.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/shared-libs.pm b/checks/shared-libs.pm
index 29fcc0a..58e39d2 100644
--- a/checks/shared-libs.pm
+++ b/checks/shared-libs.pm
@@ -680,7 +680,7 @@ sub run {
           if not $we_trigger_ldconfig and $must_call_ldconfig;
     }
 
-    my $multiarch = $info->field('multi-arch') // 'no';
+    my $multiarch = $info->field('multi-arch', 'no');
     if ($multiarch eq 'foreign' and $must_call_ldconfig) {
         tag 'shlib-in-multi-arch-foreign-package', $must_call_ldconfig;
     }

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


Reply to: