diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-04-25 15:08:36 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-04-25 15:08:36 +0200 |
commit | 1879b6855429b40105b5caafe2ea491b711a3946 (patch) | |
tree | 9d9ea2102c411899c1f2b5e3d841d41b278a5ddb | |
parent | 305cc46f2d0f89492c8dd3cceea08f4f57c00c4f (diff) | |
download | gemato-1879b6855429b40105b5caafe2ea491b711a3946.tar.gz |
openpgp: Also handle EBUSY for NFS
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | gemato/openpgp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gemato/openpgp.py b/gemato/openpgp.py index 6232ae0..2f01a9e 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -223,12 +223,13 @@ disable-scdaemon def _rmtree_error_handler(func, path, exc_info): # ignore ENOENT -- it probably means a race condition between # us and gpg-agent cleaning up after itself - # also non-empty directory due to races: + # also non-empty directory due to races, and EBUSY for NFS: # https://bugs.gentoo.org/684172 if (not isinstance(exc_info[1], OSError) or exc_info[1].errno not in (errno.ENOENT, errno.ENOTEMPTY, - errno.EEXIST)): + errno.EEXIST, + errno.EBUSY)): raise exc_info[1] def close(self): |