diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-03-10 16:42:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-03-10 16:42:49 +0000 |
commit | ab731d82e67facaf97078866fbdc91de0e43c5f1 (patch) | |
tree | 8224e22d89841dbec7a59ff4538b4c2759fb15cd | |
parent | 7f1d63f355422326cca37cc8b4bc1f3e88a3acd2 (diff) | |
download | portage-ab731d82e67facaf97078866fbdc91de0e43c5f1.tar.gz portage-ab731d82e67facaf97078866fbdc91de0e43c5f1.tar.bz2 portage-ab731d82e67facaf97078866fbdc91de0e43c5f1.zip |
Bug #212882 - Fix lockfile() to handle errno.EACCES raised from the fcntl
call since the spec says that it's equivalent to EAGAIN and it appears that
CIFS returns EACCES in this case.
svn path=/main/trunk/; revision=9458
-rw-r--r-- | pym/portage/locks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py index 19c7352b7..e9cc63d36 100644 --- a/pym/portage/locks.py +++ b/pym/portage/locks.py @@ -75,7 +75,7 @@ def lockfile(mypath, wantnewlockfile=0, unlinkfile=0, waiting_msg=None): except IOError, e: if "errno" not in dir(e): raise - if e.errno == errno.EAGAIN: + if e.errno in (errno.EACCES, errno.EAGAIN): # resource temp unavailable; eg, someone beat us to the lock. if waiting_msg is None: if isinstance(mypath, int): |