From 628f2d26804818324fd4aa1c2393bcc418ac1e76 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 13 Mar 2016 23:24:51 +0000 Subject: Fix getting the list of packages from the config for RebuildPackage action --- lib/Youri/Submit/Action/RebuildPackage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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"); -- cgit v1.2.1