From: Zac Medico Date: Thu, 30 Apr 2009 07:24:09 +0000 (-0000) Subject: Automatically define errno.ESTALE if it doesn't exist (like on interix). X-Git-Tag: v2.1.6.12~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=133733d65cc4257302bdca4b6e74084e3d5fd02c;p=portage.git Automatically define errno.ESTALE if it doesn't exist (like on interix). Thanks to Markus Duft for reporting. (trunk r13387) svn path=/main/branches/2.1.6/; revision=13539 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index be747f5bf..b8d952e62 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