diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Scanner.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
