summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-23 16:37:30 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-23 16:37:30 +0000
commit960b4fe77f872403ca537c42adffec654a3238a9 (patch)
tree96bec0222d696206085e416c8c22032aa8b8e368
parentedd3ac77d23bc323552730298e25c9cdca9bf1ad (diff)
downloadportage-960b4fe77f872403ca537c42adffec654a3238a9.tar.gz
portage-960b4fe77f872403ca537c42adffec654a3238a9.tar.bz2
portage-960b4fe77f872403ca537c42adffec654a3238a9.zip
Automatically define errno.ESTALE if it doesn't exist (like on interix).
Thanks to Markus Duft <mduft@g.o> for reporting. svn path=/main/trunk/; revision=13387
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index d92330613..4bb2513ae 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -15,6 +15,9 @@ try:
import codecs
import copy
import errno
+ if not hasattr(errno, 'ESTALE'):
+ # ESTALE may not be defined on some systems, such as interix.
+ errno.ESTALE = -1
import logging
import os
import re