diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-24 20:56:21 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-24 20:56:21 +0100 |
| commit | 574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f (patch) | |
| tree | e2ded87bb0e66cd9e88ae8d4ffc3846f788343bf /lib/python/Components/Scanner.py | |
| parent | 5a6bde9419249a78c957093e0cc438d7c6eeb46c (diff) | |
| download | enigma2-574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f.tar.gz enigma2-574f425cc1ebece0aa5f09fb77a8cb7ad0310a1f.zip | |
small optimizations and cleanups by Moritz Venn
Diffstat (limited to 'lib/python/Components/Scanner.py')
| -rw-r--r-- | lib/python/Components/Scanner.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py index 17c4aaa8..813c09f8 100644 --- a/lib/python/Components/Scanner.py +++ b/lib/python/Components/Scanner.py @@ -114,13 +114,10 @@ def scanDevice(mountpoint): # ...then remove with_subdir=False when same path exists # with with_subdirs=True - for p in set(paths_to_scan): + for p in paths_to_scan: if p.with_subdirs == True and ScanPath(path=p.path) in paths_to_scan: paths_to_scan.remove(ScanPath(path=p.path)) - # convert to list - paths_to_scan = list(paths_to_scan) - from Components.Harddisk import harddiskmanager blockdev = mountpoint.rstrip("/").rsplit('/',1)[-1] error, blacklisted, removable, is_cdrom, partitions, medium_found = harddiskmanager.getBlockDevInfo(blockdev) |
