Fix error in calculations from bug #267104. (trunk r13419)
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:32:00 +0000 (07:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:32:00 +0000 (07:32 -0000)
svn path=/main/branches/2.1.6/; revision=13559

pym/portage/__init__.py

index e734f9ad135886d20a0a6adac45228012e6594dd..e6336e141fbd35a56ea9e17f60092a0032611435 100644 (file)
@@ -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: