summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-30 07:32:00 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-30 07:32:00 +0000
commitce035c3e19a8b6c25b8d8f29f21313425c8471c6 (patch)
treec23f07e191ff3d4d631120a11aebbdf41e54b53e
parentIn config.setcpv(), move the code that makes sure "pkg" values override "env" (diff)
downloadportage-multirepo-ce035c3e19a8b6c25b8d8f29f21313425c8471c6.tar.gz
portage-multirepo-ce035c3e19a8b6c25b8d8f29f21313425c8471c6.tar.bz2
portage-multirepo-ce035c3e19a8b6c25b8d8f29f21313425c8471c6.zip
Fix error in calculations from bug #267104. (trunk r13419)
svn path=/main/branches/2.1.6/; revision=13559
-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 e734f9ad..e6336e14 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -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: