diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/Scanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py index 95e2e8f5..d944c4c7 100644 --- a/lib/python/Components/Scanner.py +++ b/lib/python/Components/Scanner.py @@ -134,7 +134,7 @@ def scanDevice(mountpoint): paths_to_scan = list(paths_to_scan) from Components.Harddisk import harddiskmanager - blockdev = mountpoint.split('/')[2] + blockdev = mountpoint.rsplit('/',1)[-1] error, blacklisted, removable, is_cdrom, partitions = harddiskmanager.getBlockDevInfo(blockdev) # now scan the paths |
