Skip to content

Commit

Permalink
[backend] fix repo deletion for repos with split debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 23, 2014
1 parent 93e9f5d commit f85ef75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/bs_sched
Expand Up @@ -1330,7 +1330,7 @@ sub prpfinished {
if (-d $r) {
BSUtil::cleandir($r);
rmdir($r) || die("rmdir $r: $!\n");
} else {
} elsif (! -e "$reporoot/$prp/:repoinfo") {
print " nothing to delete...\n";
close(F);
return '';
Expand Down Expand Up @@ -8182,7 +8182,8 @@ NEXTPRP:
$others = 1;
}
if (!$others) {
unlink("$reporoot/$prp/:repoinfo");
# cannot delete repoinfo because it maz contain splitdbg data
# unlink("$reporoot/$prp/:repoinfo");
unlink("$reporoot/$prp/.finishedlock");
rmdir("$reporoot/$prp");
}
Expand Down

0 comments on commit f85ef75

Please sign in to comment.