diff options
-rwxr-xr-x | ulri | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -542,7 +542,7 @@ foreach my $prefix (sort keys %pkg_tree) { # count noarch todos only once even if searching multiple bots my $noarch_countflag = 0; - my $arch_list = find { ref($_) eq 'ARRAY' } $config->{arch}, $config->{arch}{$target}, $config->{arch}{default}; + my $arch_list = find { ref($_) eq 'ARRAY' } $config->{arch}, (ref($config->{arch}) eq 'HASH' ? ($config->{arch}{$target}, $config->{arch}{default}) : ()); my @arch_list = $arch_list ? @$arch_list : keys %{$config->{bot}}; # need to find a bot for each arch foreach my $arch (@arch_list) { |