aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Youri/Submit/Action/RebuildPackage.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Youri/Submit/Action/RebuildPackage.pm b/lib/Youri/Submit/Action/RebuildPackage.pm
index aed4053..85e7db4 100644
--- a/lib/Youri/Submit/Action/RebuildPackage.pm
+++ b/lib/Youri/Submit/Action/RebuildPackage.pm
@@ -51,13 +51,13 @@ sub run {
chdir 'current';
$updater->update_from_spec(glob('SPECS/*.spec'));
system('svn', 'ci', '-m', "Rebuild for new $srpm_name");
+ chdir $oldcwd;
# Ugly but we don't have complete dependecy support yet :(
if ($prefix && 0) {
- system("mgarepo submit --define dependencies=$prefix &");
+ system("mgarepo submit --define dependencies=$prefix $pkg &");
} else {
- system("(sleep 600; mgarepo submit)&");
+ system("(sleep 600; mgarepo submit $pkg)&");
}
- chdir $oldcwd;
}
}