1 |
Author: zmedico |
2 |
Date: 2009-04-30 07:24:09 +0000 (Thu, 30 Apr 2009) |
3 |
New Revision: 13539 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.6/pym/portage/__init__.py |
7 |
Log: |
8 |
Automatically define errno.ESTALE if it doesn't exist (like on interix). |
9 |
Thanks to Markus Duft <mduft@g.o> for reporting. (trunk r13387) |
10 |
|
11 |
Modified: main/branches/2.1.6/pym/portage/__init__.py |
12 |
=================================================================== |
13 |
--- main/branches/2.1.6/pym/portage/__init__.py 2009-04-30 07:23:50 UTC (rev 13538) |
14 |
+++ main/branches/2.1.6/pym/portage/__init__.py 2009-04-30 07:24:09 UTC (rev 13539) |
15 |
@@ -15,6 +15,9 @@ |
16 |
import codecs |
17 |
import copy |
18 |
import errno |
19 |
+ if not hasattr(errno, 'ESTALE'): |
20 |
+ # ESTALE may not be defined on some systems, such as interix. |
21 |
+ errno.ESTALE = -1 |
22 |
import logging |
23 |
import os |
24 |
import re |