aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-04-15 11:19:24 +0000
committerMichael Scherer <misc@mageia.org>2011-04-15 11:19:24 +0000
commit22b5da7e0cf4bab33bb7f1395c98817cced3ec5f (patch)
tree35efbf22ae41f98e387e6cebe41d6ef31e0b9d39 /ulri
parente6d6cbab17f9f64e239bf6f3bcef0c5b521486bd (diff)
downloadiurt-22b5da7e0cf4bab33bb7f1395c98817cced3ec5f.tar
iurt-22b5da7e0cf4bab33bb7f1395c98817cced3ec5f.tar.gz
iurt-22b5da7e0cf4bab33bb7f1395c98817cced3ec5f.tar.bz2
iurt-22b5da7e0cf4bab33bb7f1395c98817cced3ec5f.tar.xz
iurt-22b5da7e0cf4bab33bb7f1395c98817cced3ec5f.zip
simplify declare and assign on the same line
Diffstat (limited to 'ulri')
-rwxr-xr-xulri3
1 files changed, 1 insertions, 2 deletions
diff --git a/ulri b/ulri
index b69dea4..c532639 100755
--- a/ulri
+++ b/ulri
@@ -582,7 +582,6 @@ foreach my $prefix (sort keys %pkg_tree) {
# need to find a bot for each arch
foreach my $arch (keys %{$config->{bot}}) {
my $exclude;
- my $noarch;
# Skip this arch if package is building as noarch
#
@@ -594,7 +593,7 @@ foreach my $prefix (sort keys %pkg_tree) {
# If all packages in a group are noarch, consider the entire group
# as noarch
#
- $noarch = 1;
+ my $noarch = 1;
foreach my $srpm (@$srpms) {
if (!check_noarch("$todo_dir/${prefix}_$srpm")) {
$noarch = 0;