mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typos in linux_swap_drives() in a few other devices
This commit is contained in:
parent
6b575eba33
commit
b059e839ac
@ -62,7 +62,7 @@ class TOLINO(EB600):
|
||||
# There are apparently two versions of this device, one with swapped
|
||||
# drives and one without, see https://bugs.launchpad.net/bugs/1240504
|
||||
def linux_swap_drives(self, drives):
|
||||
if len(drives) < 2 or not drives[1] or not drives[2]:
|
||||
if len(drives) < 2 or not drives[0] or not drives[1]:
|
||||
return drives
|
||||
drives = list(drives)
|
||||
t = drives[0]
|
||||
|
@ -64,7 +64,7 @@ class HANLINV3(USBMS):
|
||||
return names
|
||||
|
||||
def linux_swap_drives(self, drives):
|
||||
if len(drives) < 2 or not drives[1] or not drives[2]: return drives
|
||||
if len(drives) < 2 or not drives[0] or not drives[1]: return drives
|
||||
drives = list(drives)
|
||||
t = drives[0]
|
||||
drives[0] = drives[1]
|
||||
|
@ -461,7 +461,7 @@ class WAYTEQ(USBMS):
|
||||
|
||||
def linux_swap_drives(self, drives):
|
||||
# See https://bugs.launchpad.net/bugs/1151901
|
||||
if len(drives) < 2 or not drives[1] or not drives[2]:
|
||||
if len(drives) < 2 or not drives[0] or not drives[1]:
|
||||
return drives
|
||||
drives = list(drives)
|
||||
t = drives[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user