On Thu, 2009-04-23 at 13:55 +0200, Markus Duft wrote: > Hi! > > i'm here to report ESTALE beeing missing on interix ;) seems like > portage is checking on it lately, so i required the attached patch to > get portage working on interix again (prefix).
djanderson pointed out that I could have made the patch better - as I'm no python programmer, I didn't know better, so forgive me :) attached is the better one i hope. Cheers, Markus > > any chance to get sth. alike in the svn tree? maybe a more generic > thing? but i guess that would not be necessary > > Cheers, Markus
diff -ru portage.orig/pym/portage/__init__.py portage/pym/portage/__init__.py --- portage.orig/pym/portage/__init__.py 2009-04-23 13:49:09 +0200 +++ portage/pym/portage/__init__.py 2009-04-23 14:07:44 +0200 @@ -15,6 +15,8 @@ import codecs import copy import errno + if not hasattr(errno, 'ESTALE'): + errno.ESTALE = -1 import logging import os import re