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

pym/portage/__init__.py

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