summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeControler.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-05-31 18:02:40 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-05-31 18:02:40 +0200
commitb838e36176c48331a40cdcee690eddb6cd530c62 (patch)
treebba5d034ec784597d78fe1e05dc1d7fe7a7b48d5 /DistUpgrade/DistUpgradeControler.py
parent5d10bc5a047becae518c0c4a879b359a3a11798e (diff)
downloadpython-apt-b838e36176c48331a40cdcee690eddb6cd530c62.tar.gz
* DistUpgrade/DistUpgradeControler.py:
- fix free space calculation
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
-rw-r--r--DistUpgrade/DistUpgradeControler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 9ab18523..7602075c 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -289,7 +289,7 @@ class DistUpgradeControler(object):
if st_archivedir == st_usr:
# we are on the same filesystem, so we need to take the space
# for downloading the debs into account
- free -= self.cache.additionalRequiredSpace
+ free -= self.cache.requiredDownload
logging.debug("/usr on same fs as %s, taking dl-size into account, new free: %s" % (archivedir, free))
else:
free = st_usr[statvfs.F_BAVAIL]*st_usr[statvfs.F_FRSIZE]