Re: [PATCH] Fix the check for if there's enough space available on / and /usr (#492614).

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

 



On Tue, 2009-03-31 at 17:06 -0400, Chris Lumens wrote:
> ---
>  yuminstall.py |    9 +--------
>  1 files changed, 1 insertions(+), 8 deletions(-)

Looks good.

> 
> diff --git a/yuminstall.py b/yuminstall.py
> index b91172a..42a74b5 100644
> --- a/yuminstall.py
> +++ b/yuminstall.py
> @@ -1324,14 +1324,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
>              (self.dlpkgs, self.totalSize, self.totalFiles)  = self.ayum.getDownloadPkgs()
>  
>              if not anaconda.id.getUpgrade():
> -                usrPart = None
> -                for fs in anaconda.id.storage.devicetree.filesystems:
> -                    if fs.mountpoint == "/usr":
> -                        usrPart = fs
> -                if usrPart is not None:
> -                    largePart = usrPart
> -                else:
> -                    largePart = anaconda.id.storage.fsset.rootDevice
> +                largePart = anaconda.id.storage.fsset.mountpoints.get("/usr", anaconda.id.storage.fsset.rootDevice)
>  
>                  if largePart and largePart.size < self.totalSize / 1024:
>                      rc = anaconda.intf.messageWindow(_("Error"),

_______________________________________________
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