aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-26 19:54:09 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-26 19:54:09 +0000
commitfca6d20b97154b9910ea1313e69de132f8f528b1 (patch)
tree33b51d67f151b6928026cbfca23df6640c51dcd2 /lib/python/Components
parentc520b7a4598416098eadc08b903f757a02b7fe73 (diff)
downloadenigma2-fca6d20b97154b9910ea1313e69de132f8f528b1.tar.gz
enigma2-fca6d20b97154b9910ea1313e69de132f8f528b1.zip
fix crash upon invalid mountpoint
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Scanner.py2
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