X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=f2f0d6f1253055d81c918f23ca64670c37826b51;hp=bfdcfc575ee7642ae81fff9faf6c86c2ae62dcc0;hb=287e6f3e56eeed74465bada187f9f4b18c07eb91;hpb=7c2d7bf70b579bfb7143b604f8246395c1cbc4d7 diff --git a/bin/blhc b/bin/blhc index bfdcfc5..f2f0d6f 100755 --- a/bin/blhc +++ b/bin/blhc @@ -771,6 +771,13 @@ foreach my $file (@ARGV) { if (not $arch and index($line, 'dpkg-buildpackage: host architecture ') == 0) { $arch = substr $line, 37, -1; # -1 to ignore '\n' at the end + + # Old buildd logs use e.g. "host architecture is alpha", remove + # the "is", otherwise debarch_to_debtriplet() will not detect the + # architecture. + if (index($arch, 'is ') == 0) { + $arch = substr $arch, 3; + } } # Ignore compiler warnings for now.