aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-10-19 00:06:52 +0100
committerPascal Terjan <pterjan@mageia.org>2017-10-19 00:07:57 +0100
commit48d27677447a41d6f3afea425c77fcf42517f5b6 (patch)
tree3e73f91891af81078a625828dedeb63ca8e85cce /lib
parent1af1812a1ec07bb6ced426564ef603665b39a0c6 (diff)
downloadmga-youri-submit-48d27677447a41d6f3afea425c77fcf42517f5b6.tar
mga-youri-submit-48d27677447a41d6f3afea425c77fcf42517f5b6.tar.gz
mga-youri-submit-48d27677447a41d6f3afea425c77fcf42517f5b6.tar.bz2
mga-youri-submit-48d27677447a41d6f3afea425c77fcf42517f5b6.tar.xz
mga-youri-submit-48d27677447a41d6f3afea425c77fcf42517f5b6.zip
Leave the tmp dir before starting bg command
Diffstat (limited to 'lib')
-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;
}
}