From e703305cc4c2d1717d6b63987d13951910b682ce Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 7 Jul 2012 19:11:03 +0200 Subject: [PATCH] Prepare for multiple 'Build-Depends' checks. No behavioral changes. --- bin/blhc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/bin/blhc b/bin/blhc index d276bc0..75888b8 100755 --- a/bin/blhc +++ b/bin/blhc @@ -686,17 +686,19 @@ foreach my $file (@ARGV) { } } - # If hardening wrapper is used (wraps calls to gcc and adds hardening - # flags automatically) we can't perform any checks, abort. - if (index($line, 'Build-Depends: ') == 0 - and $line =~ /\bhardening-wrapper\b/) { - if (not $option_buildd) { - error_hardening_wrapper(); - $exit |= $exit_code{hardening_wrapper}; - } else { - print "$buildd_tag{hardening_wrapper}||\n"; + if (index($line, 'Build-Depends: ') == 0) { + # If hardening wrapper is used (wraps calls to gcc and adds + # hardening flags automatically) we can't perform any checks, + # abort. + if ($line =~ /\bhardening-wrapper\b/) { + if (not $option_buildd) { + error_hardening_wrapper(); + $exit |= $exit_code{hardening_wrapper}; + } else { + print "$buildd_tag{hardening_wrapper}||\n"; + } + next FILE; } - next FILE; } # We skip over unimportant lines at the beginning of the log to -- 2.45.2