mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Reverse order to handle case of only cardb
This commit is contained in:
parent
f65e372828
commit
64991c5317
@ -407,10 +407,10 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
print
|
||||
from pprint import pprint
|
||||
pprint({'bsd_drives': bsd_drives, 'mount_map': mount_map, 'drives': drives})
|
||||
if drives.get('main') is None and drives.get('carda'):
|
||||
drives['main'] = drives.pop('carda')
|
||||
if drives.get('carda') is None and drives.get('cardb'):
|
||||
drives['carda'] = drives.pop('cardb')
|
||||
if drives.get('main') is None and drives.get('carda'):
|
||||
drives['main'] = drives.pop('carda')
|
||||
if drives.get('main') is None:
|
||||
raise DeviceError(_('Unable to detect the %s mount point. Try rebooting.')%self.__class__.__name__)
|
||||
pat = self.OSX_MAIN_MEM_VOL_PAT
|
||||
|
Loading…
x
Reference in New Issue
Block a user