diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index f64f1be46c..3ca838279d 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -20,6 +20,7 @@ | |||
20 | # with this program; if not, write to the Free Software Foundation, Inc., | 20 | # with this program; if not, write to the Free Software Foundation, Inc., |
21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 21 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
22 | 22 | ||
23 | import glob | ||
23 | import gtk | 24 | import gtk |
24 | import gobject | 25 | import gobject |
25 | import hashlib | 26 | import hashlib |
@@ -806,7 +807,7 @@ class DeployImageDialog (CrumbsDialog): | |||
806 | 807 | ||
807 | def find_all_usb_devices(self): | 808 | def find_all_usb_devices(self): |
808 | usb_devs = [ os.readlink(u) | 809 | usb_devs = [ os.readlink(u) |
809 | for u in self.popen_read('ls /dev/disk/by-id/usb*').split() | 810 | for u in glob.glob('/dev/disk/by-id/usb*') |
810 | if not re.search(r'part\d+', u) ] | 811 | if not re.search(r'part\d+', u) ] |
811 | return [ '%s' % u[u.rfind('/')+1:] for u in usb_devs ] | 812 | return [ '%s' % u[u.rfind('/')+1:] for u in usb_devs ] |
812 | 813 | ||