diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-08 15:43:05 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-08 15:43:05 +0000 |
| commit | 705f75eb25eb4436f1b99a584dd47292d68cd6b2 (patch) | |
| tree | 6896eb9840164a949de5bfc34db240f91775dee7 /lib/python | |
| parent | 7416bb955a8eee1764a969116a54e3996fec429d (diff) | |
| download | enigma2-705f75eb25eb4436f1b99a584dd47292d68cd6b2.tar.gz enigma2-705f75eb25eb4436f1b99a584dd47292d68cd6b2.zip | |
ease cd-rom detection by using global harddiskmanager
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/Scanner.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py index c217aa5c..e13370b5 100644 --- a/lib/python/Components/Scanner.py +++ b/lib/python/Components/Scanner.py @@ -129,13 +129,9 @@ def scanDevice(mountpoint): # convert to list paths_to_scan = list(paths_to_scan) - from Components.Harddisk import HarddiskManager - class CdromManager(HarddiskManager): - def __init__(self): - pass - cdaman = CdromManager() + from Components.Harddisk import harddiskmanager blockdev = mountpoint.split('/')[2] - error, blacklisted, removable, is_cdrom, partitions = cdaman.getBlockDevInfo(blockdev) + error, blacklisted, removable, is_cdrom, partitions = harddiskmanager.getBlockDevInfo(blockdev) # now scan the paths for p in paths_to_scan: |
