Skip to content

Commit

Permalink
[backend] use cleandir for patch tmp dir cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Aug 17, 2015
1 parent e3bdc41 commit 4e8ae53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_srcserver
Expand Up @@ -2013,7 +2013,7 @@ sub applylink {
my $err = "link $tmpdir/.log $srcrep/$llnk->{'package'}/$md5-_linkerror: $!\n";
die($err) unless -e "$srcrep/$llnk->{'package'}/$md5-_linkerror";
}
unlink("$tmpdir/$_") for ls($tmpdir);
BSUtil::cleandir($tmpdir);
rmdir($tmpdir);
return str2utf8xml($failed);
}
Expand Down Expand Up @@ -2054,7 +2054,7 @@ sub applylink {
addfile($llnk->{'project'}, $llnk->{'package'}, "$tmpdir/$f", $f, $newf->{$f});
}
# clean up tmpdir
unlink("$tmpdir/$_") for ls($tmpdir);
BSUtil::cleandir($tmpdir);
rmdir($tmpdir);
# store filelist
my $linkinfo = {
Expand Down

0 comments on commit 4e8ae53

Please sign in to comment.