From 5910f6fc8dae892fb03aa43d6f060e6687847dc0 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 15 Jun 2016 00:03:28 +0100 Subject: Fix check_arch If there is an exclusive_arch tag we only want to build for an arch which is listed there. Also we shouldn't need to add all arches in arch_comp as compatible with themselves. --- lib/Iurt/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Iurt/Config.pm b/lib/Iurt/Config.pm index 5bc65d0..3bef604 100644 --- a/lib/Iurt/Config.pm +++ b/lib/Iurt/Config.pm @@ -167,7 +167,7 @@ sub check_arch { if ($exclusive_arch ne '(none)') { ($exclusive_arch) = $hdr->queryformat('[%{EXCLUSIVEARCH} ]'); my @list = split ' ', $exclusive_arch; - return 0 unless any { $arch_comp{$arch}{$_} } @list; + return 0 unless member($arch, @list); } my ($exclude_arch) = $hdr->queryformat('[%{EXCLUDEARCH} ]'); -- cgit v1.2.1