diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-02-12 09:37:07 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:29:24 -1000 |
commit | 501b1cf15a48973a0dbab735d89026a512760ec0 (patch) | |
tree | 180808e3d85c308e760a38d3bfd99a2947868427 /partedUtils.py | |
parent | 7554d826252c21b247e2baf11d2a89233c9ec336 (diff) | |
download | anaconda-501b1cf15a48973a0dbab735d89026a512760ec0.tar.gz anaconda-501b1cf15a48973a0dbab735d89026a512760ec0.tar.xz anaconda-501b1cf15a48973a0dbab735d89026a512760ec0.zip |
Removed partedUtils.get_partition_by_name()
Now provided by pyparted as parted.getPartitionByName()
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/partedUtils.py b/partedUtils.py index 35175859b..90f601395 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -48,27 +48,6 @@ log = logging.getLogger("anaconda") import gettext _ = lambda x: gettext.ldgettext("anaconda", x) -def get_partition_by_name(disks, partname): - """Return the parted part object associated with partname. - - Arguments: - disks -- Dictionary of diskname->PedDisk objects - partname -- Name of partition to find - - Return: - PedPartition object with name partname. None if no such partition. - """ - for diskname in disks.keys(): - disk = disks[diskname] - part = disk.next_partition() - while part: - if part.getDeviceNodeName() == partname: - return part - - part = disk.next_partition(part) - - return None - def get_partition_file_system_type(part): """Return the file system type of the PedPartition part. |