1 |
Author: zmedico |
2 |
Date: 2008-03-10 16:42:49 +0000 (Mon, 10 Mar 2008) |
3 |
New Revision: 9458 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/locks.py |
7 |
Log: |
8 |
Bug #212882 - Fix lockfile() to handle errno.EACCES raised from the fcntl |
9 |
call since the spec says that it's equivalent to EAGAIN and it appears that |
10 |
CIFS returns EACCES in this case. |
11 |
|
12 |
|
13 |
Modified: main/trunk/pym/portage/locks.py |
14 |
=================================================================== |
15 |
--- main/trunk/pym/portage/locks.py 2008-03-09 20:13:58 UTC (rev 9457) |
16 |
+++ main/trunk/pym/portage/locks.py 2008-03-10 16:42:49 UTC (rev 9458) |
17 |
@@ -75,7 +75,7 @@ |
18 |
except IOError, e: |
19 |
if "errno" not in dir(e): |
20 |
raise |
21 |
- if e.errno == errno.EAGAIN: |
22 |
+ if e.errno in (errno.EACCES, errno.EAGAIN): |
23 |
# resource temp unavailable; eg, someone beat us to the lock. |
24 |
if waiting_msg is None: |
25 |
if isinstance(mypath, int): |
26 |
|
27 |
-- |
28 |
gentoo-commits@l.g.o mailing list |