From 48d27677447a41d6f3afea425c77fcf42517f5b6 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 19 Oct 2017 00:06:52 +0100 Subject: Leave the tmp dir before starting bg command --- lib/Youri/Submit/Action/RebuildPackage.pm | 6 +++--- 1 file 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; } } -- cgit v1.2.1