summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-30 07:24:09 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-30 07:24:09 +0000
commit133733d65cc4257302bdca4b6e74084e3d5fd02c (patch)
treef46b52822539564b0f3096d0ed5085f3acd312c8
parentFix breakage in PREROOTPATH logic from the EAPI 3 code. (trunk r13386) (diff)
downloadportage-multirepo-133733d65cc4257302bdca4b6e74084e3d5fd02c.tar.gz
portage-multirepo-133733d65cc4257302bdca4b6e74084e3d5fd02c.tar.bz2
portage-multirepo-133733d65cc4257302bdca4b6e74084e3d5fd02c.zip
Automatically define errno.ESTALE if it doesn't exist (like on interix).
Thanks to Markus Duft <mduft@g.o> for reporting. (trunk r13387) svn path=/main/branches/2.1.6/; revision=13539
-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 be747f5b..b8d952e6 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