Skip to content

Commit

Permalink
[backend] fakejobfinished_nouseforbuild: put the logfile into the cor…
Browse files Browse the repository at this point in the history
…rect place in the failed case
  • Loading branch information
mlschroe committed Jan 7, 2014
1 parent 40da8da commit 3c8ff4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/bs_sched
Expand Up @@ -4006,6 +4006,7 @@ sub fakejobfinished_nouseforbuild {
rename("$jobdatadir/logfile.dup", "$gdst/:logfiles.success/$packid");
unlink("$gdst/:logfiles.fail/$packid");
}
rename("$jobdatadir/logfile", "$dst/logfile");
}
rename("$jobdatadir/meta", "$gdst/:meta/$packid");
if ($code eq 'succeeded') {
Expand Down Expand Up @@ -5182,7 +5183,7 @@ sub rebuildpatchinfo {
BSUtil::store("$jobdatadir/.updateinfodata", undef, $updateinfodata);
if ($broken) {
BSUtil::cleandir($jobdatadir);
writestr("$jobdatadir/logfile", undef, "update built failed".localtime($now)."\n\n$broken\n");
writestr("$jobdatadir/logfile", undef, "update built failed ".localtime($now)."\n\n$broken\n");
}
my @new_meta = ($pdata->{'verifymd5'} || $pdata->{'srcmd5'})." $packid";
for my $apackid (sort(keys %metas)) {
Expand Down

0 comments on commit 3c8ff4c

Please sign in to comment.