From: Zac Medico Date: Thu, 30 Apr 2009 07:32:00 +0000 (-0000) Subject: Fix error in calculations from bug #267104. (trunk r13419) X-Git-Tag: v2.1.6.12~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce035c3e19a8b6c25b8d8f29f21313425c8471c6;p=portage.git Fix error in calculations from bug #267104. (trunk r13419) svn path=/main/branches/2.1.6/; revision=13559 --- 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: