diff options
Diffstat (limited to 'ulri')
-rwxr-xr-x | ulri | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -635,7 +635,8 @@ foreach my $prefix (sort keys %pkg_tree) { # Copy packages to build node # - next if ssh($remote, "mkdir -p $prefix_dir"); + # create also the log dir for botcmd.log + next if ssh($remote, "mkdir -p $prefix_dir/log"); my $pkgs = ""; my $ok = 1; foreach my $srpm (@$srpms) { @@ -673,7 +674,7 @@ foreach my $prefix (sort keys %pkg_tree) { $cmd =~ s!__MEDIA__!$media_to_add!g; plog('DEBUG', "Build $pkgs"); - ssh($remote, "$cmd $pkgs > $temp &"); + ssh($remote, "'$cmd $pkgs | tee $prefix_dir/log/botcmd.log' > $temp &"); # wait 10 seconds or until we have the log file # plus 20 seconds if it timeouts. |