git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scroll to bottom of output after execution
[enigma2.git]
/
lib
/
python
/
Components
/
Scanner.py
diff --git
a/lib/python/Components/Scanner.py
b/lib/python/Components/Scanner.py
index 95e2e8f5679bc07f0c456d72d5f53d65107c8549..766d19663d30db286f112c73f8615d6d30700dd2 100644
(file)
--- 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)
# convert to list
paths_to_scan = list(paths_to_scan)
-
+
from Components.Harddisk import harddiskmanager
from Components.Harddisk import harddiskmanager
- blockdev = mountpoint.
split('/')[2
]
+ blockdev = mountpoint.
rstrip("/").rsplit('/',1)[-1
]
error, blacklisted, removable, is_cdrom, partitions = harddiskmanager.getBlockDevInfo(blockdev)
# now scan the paths
error, blacklisted, removable, is_cdrom, partitions = harddiskmanager.getBlockDevInfo(blockdev)
# now scan the paths