From: | "Ian Delaney (idella4)" <idella4@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/pyserial/files: pyserial-2.6-list_ports.patch |
Date: | Tue, 25 Mar 2014 08:23:58 |
Message-Id: | 20140325082351.658ED20057@flycatcher.gentoo.org |
1 | idella4 14/03/25 08:23:51 |
2 | |
3 | Added: pyserial-2.6-list_ports.patch |
4 | Log: |
5 | Add patch to fix Bug #500818 by NiTr0 |
6 | |
7 | (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/pyserial/files/pyserial-2.6-list_ports.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyserial/files/pyserial-2.6-list_ports.patch?rev=1.1&view=markup |
13 | 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 |
14 | |
15 | Index: pyserial-2.6-list_ports.patch |
16 | =================================================================== |
17 | http://sourceforge.net/p/pyserial/patches/26/ |
18 | Index: trunk/pyserial/serial/tools/list_ports_posix.py |
19 | =================================================================== |
20 | --- trunk/pyserial/serial/tools/list_ports_posix.py (revision 439) |
21 | +++ trunk/pyserial/serial/tools/list_ports_posix.py (working copy) |
22 | @@ -64,7 +64,8 @@ |
23 | ) |
24 | |
25 | def usb_lsusb_string(sysfs_path): |
26 | - bus, dev = os.path.basename(os.path.realpath(sysfs_path)).split('-') |
27 | + base = os.path.basename(os.path.realpath(sysfs_path)) |
28 | + bus, dev = base.split('-') |
29 | try: |
30 | desc = popen(['lsusb', '-v', '-s', '%s:%s' % (bus, dev)]) |
31 | # descriptions from device |