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

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

 



On Wed, 2010-06-09 at 14:22 -0700, Brian C. Lane wrote:
> 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.

Ack, although I'm not sure a size of 1 is much more useful than 0.

Dave

> 
> 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)
>  


_______________________________________________
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