From: Zac Medico Date: Thu, 30 Apr 2009 06:30:32 +0000 (-0000) Subject: Fix error in calculations from bug #267104. X-Git-Tag: v2.2_rc32~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab5f4c7cd79d6abff13890e48ecc22f6c184b981;p=portage.git Fix error in calculations from bug #267104. svn path=/main/trunk/; revision=13419 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index c849227d9..c121a0b9d 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3983,8 +3983,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: