diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-09-25 06:23:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-09-25 06:23:41 +0000 |
commit | 3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f (patch) | |
tree | 84ed3d42bc7b8f79e2fcdedf43ac0d29349370d7 /ulri | |
parent | 7986979446770d1ba29cb9452856bfb12cdafddb (diff) | |
download | iurt-3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f.tar iurt-3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f.tar.gz iurt-3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f.tar.bz2 iurt-3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f.tar.xz iurt-3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f.zip |
simplify checking whether the whole group is noarch or not
Diffstat (limited to 'ulri')
-rwxr-xr-x | ulri | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -578,12 +578,7 @@ foreach my $prefix (sort keys %pkg_tree) { # as noarch # my $noarch = 1; - foreach my $srpm (@$srpms) { - if (!check_noarch("$todo_dir/${prefix}_$srpm")) { - $noarch = 0; - last; - } - } + $noarch = 0 if any { !check_noarch("$todo_dir/${prefix}_$_") } @$srpms; #plog("@$srpms is noarch") if $noarch; |