aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-25 06:23:41 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-25 06:23:41 +0000
commit3ef2e0c821eb7e0eb9ae08c0ec727baa8f05f23f (patch)
tree84ed3d42bc7b8f79e2fcdedf43ac0d29349370d7 /ulri
parent7986979446770d1ba29cb9452856bfb12cdafddb (diff)
downloadiurt-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-xulri7
1 files changed, 1 insertions, 6 deletions
diff --git a/ulri b/ulri
index c31f3c0..83e1f28 100755
--- a/ulri
+++ b/ulri
@@ -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;