aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-01-05 16:06:42 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-01-05 16:06:42 +0000
commit0d32176a58601f200fe1a5b6a9fda04a44222fe8 (patch)
treeb8a741c46fb7ee41ba00835db7995af38007be43 /iurt2
parent8def605ebe319568d39ae4ad5b18ed37d8dc0a30 (diff)
downloadiurt-0d32176a58601f200fe1a5b6a9fda04a44222fe8.tar
iurt-0d32176a58601f200fe1a5b6a9fda04a44222fe8.tar.gz
iurt-0d32176a58601f200fe1a5b6a9fda04a44222fe8.tar.bz2
iurt-0d32176a58601f200fe1a5b6a9fda04a44222fe8.tar.xz
iurt-0d32176a58601f200fe1a5b6a9fda04a44222fe8.zip
Fix missing }
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt228
1 files changed, 15 insertions, 13 deletions
diff --git a/iurt2 b/iurt2
index a0f085b..9d5b6bf 100755
--- a/iurt2
+++ b/iurt2
@@ -1334,19 +1334,21 @@ sub check_pid {
sub check_media {
my ($run, $cache, $config, $srpm_version, $wrong_rpm, $provides, $pack_provide, $maint) = @_;
# We could rely on only parsing the synthesis, hoping that they are correct, however this scan is very fast, so...
- if (!$run->{build_all}) { foreach my $subdir (@{$config->{all_media}{$run->{media}}}) {
- my $rpms_dir = "$config->{repository}/$run->{distro}/$run->{my_arch}/media/$run->{media}/$subdir/";
- plog("checking current packages in $rpms_dir");
- opendir my $rpmdir, $rpms_dir or die "Could not open $rpms_dir: $!";
- my $urpmi = $run->{urpmi};
- foreach my $rpm (readdir $rpmdir) {
- my ($rarch, $srpm) = $urpmi->update_srpm($rpms_dir, $rpm, $wrong_rpm);
- $rarch or next;
- $cache->{queue}{$srpm} = 1;
- $run{status}{$srpm} = 'ok';
- check_version($run, $srpm, $srpm_version);
- }
- closedir $rpmdir;
+ if (!$run->{build_all}) {
+ foreach my $subdir (@{$config->{all_media}{$run->{media}}}) {
+ my $rpms_dir = "$config->{repository}/$run->{distro}/$run->{my_arch}/media/$run->{media}/$subdir/";
+ plog("checking current packages in $rpms_dir");
+ opendir my $rpmdir, $rpms_dir or die "Could not open $rpms_dir: $!";
+ my $urpmi = $run->{urpmi};
+ foreach my $rpm (readdir $rpmdir) {
+ my ($rarch, $srpm) = $urpmi->update_srpm($rpms_dir, $rpm, $wrong_rpm);
+ $rarch or next;
+ $cache->{queue}{$srpm} = 1;
+ $run{status}{$srpm} = 'ok';
+ check_version($run, $srpm, $srpm_version);
+ }
+ closedir $rpmdir;
+ }
}
foreach my $m (keys %{$config->{all_media}}) {