Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package python-dugong as discussed with Niels Thykier
in private mail.

Changelog:

python-dugong (3.3+dfsg-3) unstable; urgency=medium

  * The `is_temp_network_error` function now knows about more kinds of
    temporary errors, in particular also about those that do not have a
    corresponding Python exception (e.g. "no route to host").

    Closes: #771756.

 -- Nikolaus Rath <nikol...@rath.org>  Wed, 03 Dec 2014 09:11:52 -0800

Debdiff against testing is attached.

The package is not yet uploaded because I'm waiting for a sponsor.

unblock python-dugong/3.3+dfsg-3
diff -Nru python-dugong-3.3+dfsg/debian/changelog python-dugong-3.3+dfsg/debian/changelog
--- python-dugong-3.3+dfsg/debian/changelog	2014-11-15 05:44:37.000000000 -0800
+++ python-dugong-3.3+dfsg/debian/changelog	2014-12-03 09:12:38.000000000 -0800
@@ -1,3 +1,13 @@
+python-dugong (3.3+dfsg-3) unstable; urgency=medium
+
+  * The `is_temp_network_error` function now knows about more kinds of
+    temporary errors, in particular also about those that do not have a
+    corresponding Python exception (e.g. "no route to host").
+
+    Closes: #771756.
+
+ -- Nikolaus Rath <nikol...@rath.org>  Wed, 03 Dec 2014 09:11:52 -0800
+
 python-dugong (3.3+dfsg-2) unstable; urgency=medium
 
   * Skip unit tests in test/test_examples.py. These tests require network
diff -Nru python-dugong-3.3+dfsg/debian/patches/bug_771756.diff python-dugong-3.3+dfsg/debian/patches/bug_771756.diff
--- python-dugong-3.3+dfsg/debian/patches/bug_771756.diff	1969-12-31 16:00:00.000000000 -0800
+++ python-dugong-3.3+dfsg/debian/patches/bug_771756.diff	2014-12-03 09:15:42.000000000 -0800
@@ -0,0 +1,30 @@
+Description: Fix bug #771756
+Author: Nikolaus Rath <nikol...@rath.org>
+Forwarded: not-needed
+Origin: upstream, https://bitbucket.org/nikratio/python-dugong/commits/36dc1863633b6fe38a02e5ba07dd3b0cf5deeb0f
+Last-Update: 2014-12-03
+
+--- a/dugong/__init__.py
++++ b/dugong/__init__.py
+@@ -1394,8 +1394,20 @@
+                 return False
+         return True
+ 
+-    return False
++    elif isinstance(exc, OSError):
++        # We have to be careful when retrieving errno codes, because
++        # not all of them may exist on every platform.
++        for errcode in ('EHOSTDOWN', 'EHOSTUNREACH', 'ENETDOWN',
++                        'ENETRESET', 'ENETUNREACH', 'ENOLINK',
++                        'ENONET', 'ENOTCONN', 'ENXIO', 'EPIPE',
++                        'EREMCHG', 'ESHUTDOWN', 'ETIMEDOUT'):
++            try:
++                if getattr(errno, errcode) == exc.errno:
++                    return True
++            except AttributeError:
++                pass
+ 
++    return False
+ 
+ class CaseInsensitiveDict(MutableMapping):
+     """A case-insensitive `dict`-like object.
diff -Nru python-dugong-3.3+dfsg/debian/patches/series python-dugong-3.3+dfsg/debian/patches/series
--- python-dugong-3.3+dfsg/debian/patches/series	2014-11-15 05:44:21.000000000 -0800
+++ python-dugong-3.3+dfsg/debian/patches/series	2014-12-03 09:12:46.000000000 -0800
@@ -1,2 +1,3 @@
 fix_test_examples.diff
 use-local-intersphinx.patch
+bug_771756.diff

Reply via email to