diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-06-29 17:45:52 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-06-30 12:29:13 +0200 |
commit | b6d986f99418ae6aba0576c26d2272e0d6af27d1 (patch) | |
tree | 7f8e3df0b84192ec81877587c27cbcf883a7da56 /src/buildtool/build_engine/expression/expression_ptr.cpp | |
parent | 2cb56aeb16db8f3b10ee8760789eb2088912294c (diff) | |
download | justbuild-b6d986f99418ae6aba0576c26d2272e0d6af27d1.tar.gz |
just-mr: retry removal of temporary directories
When converting a directory to git, just-mr.py shells out to git
to to the actual conversion. However, not in all cases git waits
for its children, in particular when deciding to implicitly run
git-gc ("Auto packing the repository in background for optimum
performance.") This causes problems, as we assume that after git
finishes we safely can remove the temporary directory from which
we pulled; however, the shutils.rmtree function we call for this
assumes the directory to be removed not to be changed by other
processes---like git removing the file gc.pid. Work around this,
by retrying the removal of no longer needed temporary directories.
Diffstat (limited to 'src/buildtool/build_engine/expression/expression_ptr.cpp')
0 files changed, 0 insertions, 0 deletions