diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-04 15:17:33 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-04 20:46:45 +0000 |
commit | b64e8e721fd9117af585151b93a18fec1c285059 (patch) | |
tree | 8964bbdc8b4070f99e12b0bf480afa7f8a1705ab /dist | |
parent | 63f2b8c7a885a84fc8f240ec8e4ac88c3a3c6e64 (diff) |
Fix special_case_handler to handle git add prev_CMakeLists.txt better
When using run_pro2cmake.py, it spawns multiple instances of
pro2cmake.py.
If more than 1 of the instances need to git add prev_CMakeLists.txt at
the same time, git add might fail due to the acquired index.lock.
The cleaner solution would be to use a file lock as a mutex, but that
requires an external pypi package.
Use a poor man solution of retrying the git add with a time delay for a
finite amount of times.
Change-Id: I2031f6e29ae499526cb4f1753e4387e7f4fab0ab
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions