idella4 14/03/25 08:23:51 Added: pyserial-2.6-list_ports.patch Log: Add patch to fix Bug #500818 by NiTr0 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Revision Changes Path 1.1 dev-python/pyserial/files/pyserial-2.6-list_ports.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyserial/files/pyserial-2.6-list_ports.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyserial/files/pyserial-2.6-list_ports.patch?rev=1.1&content-type=text/plain Index: pyserial-2.6-list_ports.patch =================================================================== http://sourceforge.net/p/pyserial/patches/26/ Index: trunk/pyserial/serial/tools/list_ports_posix.py =================================================================== --- trunk/pyserial/serial/tools/list_ports_posix.py (revision 439) +++ trunk/pyserial/serial/tools/list_ports_posix.py (working copy) @@ -64,7 +64,8 @@ ) def usb_lsusb_string(sysfs_path): - bus, dev = os.path.basename(os.path.realpath(sysfs_path)).split('-') + base = os.path.basename(os.path.realpath(sysfs_path)) + bus, dev = base.split('-') try: desc = popen(['lsusb', '-v', '-s', '%s:%s' % (bus, dev)]) # descriptions from device
