diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Youri/Submit/Action/RebuildPackage.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Youri/Submit/Action/RebuildPackage.pm b/lib/Youri/Submit/Action/RebuildPackage.pm index 6c3053d..4181676 100644 --- a/lib/Youri/Submit/Action/RebuildPackage.pm +++ b/lib/Youri/Submit/Action/RebuildPackage.pm @@ -40,11 +40,11 @@ sub run { } my $srpm_name = $package->get_canonical_name; - my @packages = $self->{rules}{$srpm_name} or return 1; + my $packages = $self->{rules}{$srpm_name} or return 1; my $svn = $repository->get_svn_url(); my $updater = Youri::Package::RPM::Updater->new; my $oldcwd = getcwd(); - foreach my $pkg (@packages) { + foreach my $pkg (@$packages) { my $tmpdir = File::Temp->newdir; chdir $tmpdir->dirname; system('svn', 'co', "${svn}/${pkg}/current"); |