summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-23 22:17:14 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-23 22:17:14 +0000
commit2b37e8e7fd7f36e1f9285f147792fbcaf7c5e5c1 (patch)
tree4974d311b3338a32a1c7059919c89f3ed9fa3a77 /isys/isys.py
parent5663d1c038c72369b0ac1af4bb301602c292b590 (diff)
downloadanaconda-2b37e8e7fd7f36e1f9285f147792fbcaf7c5e5c1.tar.gz
anaconda-2b37e8e7fd7f36e1f9285f147792fbcaf7c5e5c1.tar.xz
anaconda-2b37e8e7fd7f36e1f9285f147792fbcaf7c5e5c1.zip
compareDrives isn't quite right when you have both IDE and SCSI disks
If you have hda, hdb, and sda, the proper order for them to be sorted in is hda, hdb, sda... not hda, sda, hdb bug 52356
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 8ef0aa327..af85c693f 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -301,19 +301,19 @@ def getopt(*args):
return apply(_isys.getopt, args)
def compareDrives(first, second):
- type1 = first[0:3]
- type2 = second[0:3]
+ type1 = first[0:2]
+ type2 = second[0:2]
- if type1 == "hda":
+ if type1 == "hd":
type1 = 0
- elif type1 == "sda":
+ elif type1 == "sd":
type1 = 1
else:
type1 = 2
- if type2 == "hda":
+ if type2 == "hd":
type2 = 0
- elif type2 == "sda":
+ elif type2 == "sd":
type2 = 1
else:
type2 = 2