[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 3/5] Take the base request weight into account when sorting partitions.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 3/5] Take the base request weight into account when sorting partitions.
- Date: Mon, 30 Mar 2009 11:02:18 -0400
---
storage/partitioning.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/storage/partitioning.py b/storage/partitioning.py
index a71ba91..78b4ffa 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -356,6 +356,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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]