[PATCH 1/3] Fix sorting of requests by mountpoint. It was backwards.

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

 



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 34d9371..44bfd7d 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -415,7 +415,7 @@ def partitionCompare(part1, part2):
     # give a little bump based on mountpoint
     if hasattr(part1.format, "mountpoint") and \
        hasattr(part2.format, "mountpoint"):
-        ret -= cmp(part1.format.mountpoint, part2.format.mountpoint) * 10
+        ret += cmp(part1.format.mountpoint, part2.format.mountpoint) * 10
 
     if ret > 0:
         ret = 1
-- 
1.6.0.6

_______________________________________________
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