Hello,

On Thu, Jun 11, 2015 at 03:09:25PM +0200, Uwe Kleine-König wrote:
> Source: pyserial
> Version: 2.6-1.1
> Severity: normal
> Tags: patch upstream fixed-upstream
> 
> Hello,
> 
> I was biten by a bug that is already reported upstream on
> 
>       http://sourceforge.net/p/pyserial/bugs/166/
> 
> .. It was fixed in the upstream svn repository in r495. Attached is a
> patch.
I'd like to get a fix into unstable and prepared an NMU with the
following resulting debdiff:

diff -u pyserial-2.6/debian/changelog pyserial-2.6/debian/changelog
--- pyserial-2.6/debian/changelog
+++ pyserial-2.6/debian/changelog
@@ -1,3 +1,11 @@
+pyserial (2.6-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * fix check for successful RFC2217 connection establishment; patch from
+    upstream (Closes: #788439).
+
+ -- Uwe Kleine-König <u.kleine-koe...@pengutronix.de>  Mon, 22 Jun 2015 
08:49:06 +0200
+
 pyserial (2.6-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- pyserial-2.6.orig/serial/rfc2217.py
+++ pyserial-2.6/serial/rfc2217.py
@@ -429,7 +429,7 @@
         timeout_time = time.time() + self._network_timeout
         while time.time() < timeout_time:
             time.sleep(0.05)    # prevent 100% CPU load
-            if sum(o.active for o in mandadory_options) == 
len(mandadory_options):
+            if sum(o.active for o in mandadory_options) == sum(o.state != 
INACTIVE for o in mandadory_options):
                 break
         else:
             raise SerialException("Remote does not seem to support RFC2217 or 
BINARY mode %r" % mandadory_options)

I will search for a sponsor (as I'm not a DD) to upload this NMU for me
next week, or earlier if you (=Matthias Klose) are OK with this upload.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to