[PATCH rhel6-branch master] Make minimum shrink size 1 not 0 (#602442)

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

 



Shrink dialog in autopart lets 0 get through. Lower level code
doesn't like a length of 0 and throws and exception that isn't
caught.

Resolves: rhbz#602442
---
 iw/autopart_type.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index 9134e68..404fa74 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -49,7 +49,7 @@ def whichToShrink(storage, intf):
         requpper = long(math.floor(part.format.currentSize))
 
         adj = shrinkSB.get_adjustment()
-        adj.lower = reqlower
+        adj.lower = max(1,reqlower)
         adj.upper = requpper
         adj.set_value(reqlower)
 
-- 
1.7.0.1

_______________________________________________
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