From 77923ed4e1caecf4cef7d46bd6979ef700fed7e2 Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Tue, 28 Oct 2008 18:06:01 +0000 Subject: change internal handling of media format types and don't scan cd before opening context menu --- lib/python/Components/Scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py index d944c4c7..766d1966 100644 --- a/lib/python/Components/Scanner.py +++ b/lib/python/Components/Scanner.py @@ -132,9 +132,9 @@ def scanDevice(mountpoint): # convert to list paths_to_scan = list(paths_to_scan) - + from Components.Harddisk import harddiskmanager - blockdev = mountpoint.rsplit('/',1)[-1] + blockdev = mountpoint.rstrip("/").rsplit('/',1)[-1] error, blacklisted, removable, is_cdrom, partitions = harddiskmanager.getBlockDevInfo(blockdev) # now scan the paths -- cgit v1.2.3