X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=98d82c20696f78bc0829faac138d61eef06f3828;hp=25f2953aa2e3fc0d53866f347849e7ed20489e1c;hb=192655b9eb6dd25d8ffe68328a6a54c8987977a1;hpb=dd1669aad7f4b5e46fabecc38beda57ca61de127 diff --git a/bin/blhc b/bin/blhc index 25f2953..98d82c2 100755 --- a/bin/blhc +++ b/bin/blhc @@ -542,7 +542,7 @@ foreach my $file (@ARGV) { if ($option_buildd and index($line, 'Toolchain package versions: ') == 0) { require Dpkg::Version; - if ($line !~ /\bdpkg-dev_(\S+)/ + if (not $line =~ /\bdpkg-dev_(\S+)/ or Dpkg::Version::version_compare($1, '1.16.1') < 0) { $harden_format = 0; $harden_fortify = 0; @@ -643,7 +643,7 @@ foreach my $file (@ARGV) { $complete_line .= ' ' . $line; } # Line continuation, line ends with "\". - if ($line =~ /\\\s*$/) { + if ($line =~ /\\$/) { $continuation = 1; # Start line continuation. if (not defined $complete_line) {