Package: python-gps Version: 2.37-7 Severity: normal
On Lenny, gps.gps.waiting() always returns True because it makes incorrect assumptions about socket internals: >>> import gps >>> g=gps.gps() >>> g.waiting() True >>> g.poll() -1 def waiting(self): "Return True if data is ready for the client." if self.sockfile._rbuf: # Ugh...relies on socket library internals. return True else: (winput,woutput,wexceptions) = select.select((self.sock,), (),(), 0) return winput != [] The version of python-gps on squeeze has the socket internals hack removed: def waiting(self): "Return True if data is ready for the client." if self.linebuffer: return True (winput, woutput, wexceptions) = select.select((self.sock,), (), (), 0) return winput != [] Simple removing the first test (from the lenny version) seems to work fine. -- System Information: Debian Release: 5.0.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-gps depends on: ii libc6 2.7-18lenny2 GNU C Library: Shared libraries ii python 2.5.2-3 An interactive high-level object-o ii python-support 0.8.4lenny1 automated rebuilding support for P ii python2.4 2.4.6-1+lenny1 An interactive high-level object-o Versions of packages python-gps recommends: ii gpsd 2.37-7 GPS (Global Positioning System) da python-gps suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org