aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-03-13 23:24:51 +0000
committerPascal Terjan <pterjan@gmail.com>2016-03-13 23:24:51 +0000
commit628f2d26804818324fd4aa1c2393bcc418ac1e76 (patch)
treee28b01f69003006847da12ea8db4ca898277dd83 /lib/Youri
parentd71f089365c11ac0ccc09a89ccd2fa05fa3200e9 (diff)
downloadmga-youri-submit-628f2d26804818324fd4aa1c2393bcc418ac1e76.tar
mga-youri-submit-628f2d26804818324fd4aa1c2393bcc418ac1e76.tar.gz
mga-youri-submit-628f2d26804818324fd4aa1c2393bcc418ac1e76.tar.bz2
mga-youri-submit-628f2d26804818324fd4aa1c2393bcc418ac1e76.tar.xz
mga-youri-submit-628f2d26804818324fd4aa1c2393bcc418ac1e76.zip
Fix getting the list of packages from the config for RebuildPackage action
Diffstat (limited to 'lib/Youri')
-rw-r--r--lib/Youri/Submit/Action/RebuildPackage.pm4
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");