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

[lintian] 01/01: Commit a239e00 does not properly handle the absense of a "Build-Depends" field



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

broucaries-guest pushed a commit to branch master
in repository lintian.

commit e3015d2327847d729183a196e0b8db9743134ea5
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Sun May 18 18:20:05 2014 +0200

    Commit a239e00 does not properly handle the absense of a "Build-Depends" field
    
    Fix it.
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/control-file.pm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/checks/control-file.pm b/checks/control-file.pm
index db4f957..52c308f 100644
--- a/checks/control-file.pm
+++ b/checks/control-file.pm
@@ -344,12 +344,14 @@ sub run {
 
     # find binary packages that Pre-Depend on multiarch-support without going
     # via ${misc:Pre-Depends}
-    if ($info->source_field('build-depends') =~ /debhelper/) {
-        for my $bin (@package_names) {
-            my $raw = $info->binary_field($bin, 'pre-depends');
-            next unless $raw;
-            if($raw =~ /multiarch-support/) {
-                tag 'pre-depends-directly-on-multiarch-support',$bin;
+    if ($info->source_field('build-depends')) {
+        if ($info->source_field('build-depends') =~ /debhelper/) {
+            for my $bin (@package_names) {
+                my $raw = $info->binary_field($bin, 'pre-depends');
+                next unless $raw;
+                if($raw =~ /multiarch-support/) {
+                    tag 'pre-depends-directly-on-multiarch-support',$bin;
+                }
             }
         }
     }

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


Reply to: