debian-koji/koji
Yu Ming Zhu 52a63f732d util: [rmtree] try best to catch errors for race condition
fixes: #2481

This approach is ugly, but just working.

ENOENT and ESTALE errors are catched in `chdir`, `listdir` calls to stomach the deletion by other process/thread

ENOTEMPTY is catched when calling `os.rmdir(path)` in `rmtree()` too. It happens when `path` is on an NFS like where ESTALE happens.
2020-10-05 10:14:34 +02:00
..
__init__.py report versions of components 2020-09-30 10:43:19 +02:00
_version.py update version 2020-09-30 10:43:19 +02:00
arch.py use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
auth.py hub: more verbose assertPerm error 2020-08-31 08:48:57 +02:00
context.py flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
daemon.py drop host versions 2020-09-30 10:43:19 +02:00
db.py always set utf8 pg client encoding 2020-04-01 16:19:03 +02:00
Makefile Simplify obtaining of PKGDIR 2020-09-22 13:45:48 +02:00
plugin.py replace logging.warn with warning 2020-04-22 13:47:15 +02:00
policy.py flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
rpmdiff.py use Exception instead of BaseException for bare expection 2020-03-03 21:38:22 +08:00
server.py flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
tasks.py fix flake8 issues 2020-06-05 10:58:38 +02:00
util.py util: [rmtree] try best to catch errors for race condition 2020-10-05 10:14:34 +02:00
xmlrpcplus.py flake8: apply E3 rules 2020-03-03 21:38:22 +08:00