summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-30 06:30:32 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-30 06:30:32 +0000
commitab5f4c7cd79d6abff13890e48ecc22f6c184b981 (patch)
tree0497b0d609283776e78dd53e2b92fbaf01e0178c
parentIn config.setcpv(), move the code that makes sure "pkg" values override "env" (diff)
downloadportage-idfetch-ab5f4c7cd79d6abff13890e48ecc22f6c184b981.tar.gz
portage-idfetch-ab5f4c7cd79d6abff13890e48ecc22f6c184b981.tar.bz2
portage-idfetch-ab5f4c7cd79d6abff13890e48ecc22f6c184b981.zip
Fix error in calculations from bug #267104.
svn path=/main/trunk/; revision=13419
-rw-r--r--pym/portage/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index c849227d..c121a0b9 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: