[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 05/14] Use disk.name to get device node name.
- From: David Lehman <dlehman redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH 05/14] Use disk.name to get device node name.
- Date: Mon, 02 Mar 2009 10:07:37 -0600
Looks good.
On Sun, 2009-03-01 at 20:32 -1000, David Cantrell wrote:
> We have used string slicing to get a device node name like 'sda5'
> in the past. The disk.name property now gives us that so we do
> not have to do string slicing all over the code.
> ---
> iw/autopart_type.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/iw/autopart_type.py b/iw/autopart_type.py
> index 0c8e6c9..bb38533 100644
> --- a/iw/autopart_type.py
> +++ b/iw/autopart_type.py
> @@ -389,7 +389,7 @@ class PartitionTypeWindow(InstallWindow):
> size, partedDisk.device.model)
> i = bootstore.append(None)
> bootstore[i] = (dispstr, partedDisk.device.path[5:])
> - if disk.device.path[5:] == defaultBoot:
> + if disk.name == defaultBoot:
> self.bootcombo.set_active_iter(i)
>
> if len(bootstore) <= 1:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]