[PATCH] Fix typo in action sorting. Disklabels before partitions. (#560017)

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

 



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

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 4fb4e6c..d304b38 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -594,10 +594,10 @@ class DeviceTree(object):
                         ret = cmp(a1.device.name, a2.device.name)
                 elif isinstance(a1.device, PartitionDevice) and \
                      a2.device.partitioned:
-                    ret = -1
+                    ret = 1
                 elif isinstance(a2.device, PartitionDevice) and \
                      a1.device.partitioned:
-                    ret = 1
+                    ret = -1
                 else:
                     ret = 0
             elif a1.isCreate():
-- 
1.6.2.5

_______________________________________________
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