[PATCH 3/5] Take the base request weight into account when sorting partitions.

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

 



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 9f42a72..8d8df75 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -355,6 +355,12 @@ def partitionCompare(part1, part2):
     """
     ret = 0
 
+    if part1.req_base_weight:
+        ret -= part1.req_base_weight
+
+    if part2.req_base_weight:
+        ret += part2.req_base_weight
+
     # bootable partitions to the front
     ret -= cmp(part1.req_bootable, part2.req_bootable) * 1000
 
-- 
1.6.1.3

_______________________________________________
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