projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19918f0
)
Automatically define errno.ESTALE if it doesn't exist (like on interix).
author
Zac Medico
<zmedico@gentoo.org>
Thu, 30 Apr 2009 07:24:09 +0000
(07:24 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 30 Apr 2009 07:24:09 +0000
(07:24 -0000)
Thanks to Markus Duft <mduft@g.o> for reporting. (trunk r13387)
svn path=/main/branches/2.1.6/; revision=13539
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index be747f5bf1445e3a67081b0b9e86dec203b25a79..b8d952e625f4bba72358d1b87e68d5f339f8e4f3 100644
(file)
--- 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