summaryrefslogtreecommitdiffstats
path: root/storage/devices.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-01-26 14:58:36 +0100
committerHans de Goede <hdegoede@redhat.com>2010-01-28 22:08:47 +0100
commite32b33c0e1eb2d7b99affa8c1f683626e13e1d2f (patch)
tree1f7a4cf1cf2cdff2bf07e0003f2e64db42b04f10 /storage/devices.py
parent91598d0cd60f92e7a6e8c279df0a72baff31c661 (diff)
downloadanaconda-e32b33c0e1eb2d7b99affa8c1f683626e13e1d2f.tar.gz
anaconda-e32b33c0e1eb2d7b99affa8c1f683626e13e1d2f.tar.xz
anaconda-e32b33c0e1eb2d7b99affa8c1f683626e13e1d2f.zip
Hookup new python EDD code (#478996)
Replace all usage of the isys C EDD code with the new storage python EDD code. Note that this moves the sorting of partition.req_disks from devices.py to paritioning.py, because sorting now needs access to the storage object, this also has the added advantange that now we always allocatePartitions in sorted drive order, even in interactive mode.
Diffstat (limited to 'storage/devices.py')
-rw-r--r--storage/devices.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/storage/devices.py b/storage/devices.py
index d5ca22bbf..9e9508466 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -112,7 +112,6 @@ from iutil import notify_kernel, numeric_type
from .storage_log import log_method_call
from udev import *
from formats import get_device_format_class, getFormat, DeviceFormat
-from isys import compareDrives
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -917,7 +916,6 @@ class PartitionDevice(StorageDevice):
if not exists:
# this is a request, not a partition -- it has no parents
self.req_disks = self.parents[:]
- self.req_disks.sort(key=lambda d: d.name, cmp=compareDrives)
for dev in self.parents:
dev.removeChild()
self.parents = []