aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-06-15 00:03:28 +0100
committerPascal Terjan <pterjan@gmail.com>2016-06-15 00:03:28 +0100
commit5910f6fc8dae892fb03aa43d6f060e6687847dc0 (patch)
tree9ae499cb3a61110c353f82197ae89b304c0c6589 /lib/Iurt
parentebc3c864fb1032097f249c3786fe7f87549c5d07 (diff)
downloadiurt-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.
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Config.pm2
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} ]');