diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-01-29 19:10:29 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-01-29 19:10:29 +0000 |
commit | 2e6812929fa71d5ecff5485e482af9210c02a1ea (patch) | |
tree | bb228940cba23b09cc238b48534696c87a57893b | |
parent | 56a4d2823c34e209aa9f801a39de3b677d7fb0f2 (diff) | |
download | iurt-2e6812929fa71d5ecff5485e482af9210c02a1ea.tar iurt-2e6812929fa71d5ecff5485e482af9210c02a1ea.tar.gz iurt-2e6812929fa71d5ecff5485e482af9210c02a1ea.tar.bz2 iurt-2e6812929fa71d5ecff5485e482af9210c02a1ea.tar.xz iurt-2e6812929fa71d5ecff5485e482af9210c02a1ea.zip |
Fetch and clean log files in case of success (Bug #668)
-rwxr-xr-x | ulri | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -389,17 +389,11 @@ foreach my $prefix (keys %pkg_tree) { } next if $error; - # Do nothing if the scp failed, wait for the other run - # (it may be a disk full problem) - # next if $error; - #if ($success) { - # The SRPM should be recreated thus no need to copy it - # foreach my $srpm (@{$ent->{srpms}}) { - # plog("linking $todo_dir/${prefix}_$srpm to $done_dir/${prefix}_$srpm"); - # link "$todo_dir/${prefix}_$srpm", "$done_dir/${prefix}_$srpm" - # } - # FIXME Have to remove remote remaining packages and directory - #} + if ($success) { + # Fetch build log and clean remote machine + sget($remote, "$prefix_dir/log", "$done_dir/$prefix"); + ssh($remote, "rm -rf $prefix_dir"); + } } } # if ($status) |