diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-06-15 00:03:28 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-06-15 00:03:28 +0100 |
commit | 5910f6fc8dae892fb03aa43d6f060e6687847dc0 (patch) | |
tree | 9ae499cb3a61110c353f82197ae89b304c0c6589 | |
parent | ebc3c864fb1032097f249c3786fe7f87549c5d07 (diff) | |
download | iurt-5910f6fc8dae892fb03aa43d6f060e6687847dc0.tar iurt-5910f6fc8dae892fb03aa43d6f060e6687847dc0.tar.gz iurt-5910f6fc8dae892fb03aa43d6f060e6687847dc0.tar.bz2 iurt-5910f6fc8dae892fb03aa43d6f060e6687847dc0.tar.xz iurt-5910f6fc8dae892fb03aa43d6f060e6687847dc0.zip |
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.
-rw-r--r-- | lib/Iurt/Config.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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} ]'); |