summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-12 14:37:14 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-12 14:37:14 -0700
commitcdf1ad214e335eb1c49d3993a68a16ec90475746 (patch)
tree45e76f0c9ea171fd53e4b4aeaa8a3f6ee06c4704
parentfd3f18634c4039d73d72554e0c8bb2817ccf753e (diff)
downloadportage-cdf1ad214e335eb1c49d3993a68a16ec90475746.tar.gz
portage-cdf1ad214e335eb1c49d3993a68a16ec90475746.tar.bz2
portage-cdf1ad214e335eb1c49d3993a68a16ec90475746.zip
Bug #336875 - Don't reference errno.ETIME since it's undefined on FreeBSD.
-rw-r--r--pym/portage/exception.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/exception.py b/pym/portage/exception.py
index bfb90cc16..6fa975ae6 100644
--- a/pym/portage/exception.py
+++ b/pym/portage/exception.py
@@ -82,7 +82,9 @@ class TryAgain(PortageException):
"""Try again"""
class TimeoutException(PortageException):
- from errno import ETIME as errno
+ """Operation timed out"""
+ # NOTE: ETIME is undefined on FreeBSD (bug #336875)
+ #from errno import ETIME as errno
class AlarmSignal(TimeoutException):
def __init__(self, value, signum=None, frame=None):