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

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

 



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: pgpuBGllZS8al.pgp
Description: PGP signature

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux