From ce035c3e19a8b6c25b8d8f29f21313425c8471c6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:32:00 +0000 Subject: [PATCH] Fix error in calculations from bug #267104. (trunk r13419) svn path=/main/branches/2.1.6/; revision=13559 --- pym/portage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index e734f9ad1..e6336e141 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3973,8 +3973,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", has_space = False elif userfetch: has_space = False - elif (size - mysize + vfs_stat.f_bfree) >= \ - (vfs_stat.f_bfree * vfs_stat.f_bavail): + elif (size - mysize + vfs_stat.f_bsize) >= \ + (vfs_stat.f_bsize * vfs_stat.f_bfree): has_space = False if not has_space: -- 2.26.2