FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 12-07-2010, 07:18 PM
David Lehman
 
Default Device destroy actions can only require other destroy actions. (#651589)

---
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
--
1.7.2.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-07-2010, 08:17 PM
"Brian C. Lane"
 
Default 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)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org