aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-01-29 19:10:29 +0000
committerPascal Terjan <pterjan@mageia.org>2012-01-29 19:10:29 +0000
commit2e6812929fa71d5ecff5485e482af9210c02a1ea (patch)
treebb228940cba23b09cc238b48534696c87a57893b
parent56a4d2823c34e209aa9f801a39de3b677d7fb0f2 (diff)
downloadiurt-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-xulri16
1 files changed, 5 insertions, 11 deletions
diff --git a/ulri b/ulri
index ec7f816..367394a 100755
--- a/ulri
+++ b/ulri
@@ -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)