diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-26 19:54:09 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-26 19:54:09 +0000 |
| commit | fca6d20b97154b9910ea1313e69de132f8f528b1 (patch) | |
| tree | 33b51d67f151b6928026cbfca23df6640c51dcd2 /lib/python/Components/Scanner.py | |
| parent | c520b7a4598416098eadc08b903f757a02b7fe73 (diff) | |
| download | enigma2-fca6d20b97154b9910ea1313e69de132f8f528b1.tar.gz enigma2-fca6d20b97154b9910ea1313e69de132f8f528b1.zip | |
fix crash upon invalid mountpoint
Diffstat (limited to 'lib/python/Components/Scanner.py')
| -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 |
