Fix typos in linux_swap_drives() in a few other devices

This commit is contained in:
Kovid Goyal 2013-10-17 13:02:47 +05:30
parent 6b575eba33
commit b059e839ac
3 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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]

View File

@ -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]