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

[lintian] 02/05: c/binaries: fix go whitelist by moving variable



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

nthykier pushed a commit to branch master
in repository lintian.

commit 63e4c010c65aa56339c2f3ff4f1afb5c6a9f738e
Author: Michael Stapelberg <stapelberg@debian.org>
Date:   Mon Mar 13 20:30:24 2017 +0100

    c/binaries: fix go whitelist by moving variable
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/binaries.pm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/checks/binaries.pm b/checks/binaries.pm
index 10edfc5..5870dd9 100644
--- a/checks/binaries.pm
+++ b/checks/binaries.pm
@@ -126,6 +126,13 @@ sub run {
     $arch_hardening = $HARDENING->value($arch)
       if $arch ne 'all';
 
+    my $src = $group->get_source_processable;
+    if (defined($src)) {
+        $built_with_golang
+          = $src->info->relation('build-depends')
+          ->implies('golang-go | golang-any');
+    }
+
     foreach my $file (sort keys %{$info->objdump_info}) {
         my $objdump = $info->objdump_info->{$file};
         my ($has_lfs, %unharded_functions, @hardened_functions);
@@ -273,13 +280,6 @@ sub run {
     tag 'package-name-doesnt-match-sonames', "@sonames"
       if @sonames && !$match_found;
 
-    my $src = $group->get_source_processable;
-    if (defined($src)) {
-        $built_with_golang
-          = $src->info->relation('build-depends')
-          ->implies('golang-go | golang-any');
-    }
-
     # process all files in package
     foreach my $file ($info->sorted_index) {
         my ($fileinfo, $objdump, $fname);

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


Reply to: