[PATCH 2/5] Allow specification of a label for new swap space via custom ui.

Chris Lumens clumens at redhat.com
Thu Sep 13 21:13:17 UTC 2012


> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> index f4475c2..c302708 100644
> --- a/pyanaconda/ui/gui/spokes/custom.py
> +++ b/pyanaconda/ui/gui/spokes/custom.py
> @@ -1027,7 +1027,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
>          selectedDeviceDescLabel.set_text(self._description(selector.props.name))
>  
>          labelEntry.set_text(getattr(device.format, "label", "") or "")
> -        can_label = getattr(device.format, "labelfsProg", "") != ""
> +        can_label = (hasattr(device.format, "label") and
> +                     not device.format.exists)
>          labelEntry.set_sensitive(can_label)
>  
>          if labelEntry.get_sensitive():

I believe I saw a comment about this on some mailing list the other day,
so it may be worth leaving a follow up comment saying it's been handled.

- Chris


More information about the anaconda-patches mailing list