[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Device destroy actions can only require other destroy actions. (#651589)



On Tue, Dec 07, 2010 at 02:18:00PM -0600, David Lehman wrote:
> ---
>  pyanaconda/storage/deviceaction.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/pyanaconda/storage/deviceaction.py b/pyanaconda/storage/deviceaction.py
> index e020a57..47de6b8 100644
> --- a/pyanaconda/storage/deviceaction.py
> +++ b/pyanaconda/storage/deviceaction.py
> @@ -292,7 +292,7 @@ class ActionDestroyDevice(DeviceAction):
>                    and this partition has a lower number
>          """
>          rc = False
> -        if action.device.dependsOn(self.device):
> +        if action.device.dependsOn(self.device) and action.isDestroy:
>              rc = True
>          elif (action.isDestroy and action.isDevice and
>                isinstance(self.device, PartitionDevice) and

That certainly makes sense. Ack.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgplR3RePADTa.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]