X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=43000271861b6512d66543e6104361a9d9f15736;hp=17944127a9e1f60db42761790ca44797f6724f55;hb=1b2ee66;hpb=046a793b2b3ba3695250983a17e4abd978b036b3 diff --git a/bin/blhc b/bin/blhc index 1794412..4300027 100755 --- a/bin/blhc +++ b/bin/blhc @@ -954,6 +954,10 @@ foreach my $file (@ARGV) { # Detect architecture automatically unless overridden. if (not $arch + and index($line, 'dpkg-buildpackage: info: host architecture ') == 0) { + $arch = substr $line, 43, -1; # -1 to ignore '\n' at the end + # Older versions of dpkg-buildpackage + } elsif (not $arch and index($line, 'dpkg-buildpackage: host architecture ') == 0) { $arch = substr $line, 37, -1; # -1 to ignore '\n' at the end