From ab5f4c7cd79d6abff13890e48ecc22f6c184b981 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 06:30:32 +0000 Subject: [PATCH] Fix error in calculations from bug #267104. svn path=/main/trunk/; revision=13419 --- 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 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: -- 2.26.2