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 > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 04-06-2010, 06:05 PM
David Lehman
 
Default Sort partition create actions before other unpartitioned devices. (#574379)

---
storage/devicetree.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 7295856..14239b0 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -601,6 +601,12 @@ class DeviceTree(object):
elif isinstance(a2.device, PartitionDevice) and
a1.device.partitioned:
ret = -1
+ elif isinstance(a1.device, PartitionDevice) and
+ not isinstance(a2.device, PartitionDevice):
+ ret = -1
+ elif isinstance(a2.device, PartitionDevice) and
+ not isinstance(a1.device, PartitionDevice):
+ ret = 1
else:
ret = 0
elif a1.isCreate():
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-06-2010, 06:27 PM
Hans de Goede
 
Default Sort partition create actions before other unpartitioned devices. (#574379)

Ack.

On 04/06/2010 08:05 PM, David Lehman wrote:

---
storage/devicetree.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 7295856..14239b0 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -601,6 +601,12 @@ class DeviceTree(object):
elif isinstance(a2.device, PartitionDevice) and
a1.device.partitioned:
ret = -1
+ elif isinstance(a1.device, PartitionDevice) and
+ not isinstance(a2.device, PartitionDevice):
+ ret = -1
+ elif isinstance(a2.device, PartitionDevice) and
+ not isinstance(a1.device, PartitionDevice):
+ ret = 1
else:
ret = 0
elif a1.isCreate():


_______________________________________________
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 04:59 AM.

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