summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeCache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-05-12 12:53:31 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-05-12 12:53:31 +0200
commitf1cd8b417e3c53dff680c0dd2acf04ee8be8970b (patch)
tree4aa47bc9a65fa06cabb4c7dc25fcc7c7bda2f76c /DistUpgrade/DistUpgradeCache.py
parent1a1fbf466bec90d8c28fb29b3cafc70480ffa4f2 (diff)
downloadpython-apt-f1cd8b417e3c53dff680c0dd2acf04ee8be8970b.tar.gz
* DistUpgrade/DistUpgradeCache.py:
- added "additonalRequiredSpace" property * DistUpgrade/DistUpgradeControler.py: - try to detect space problems on /usr when upgrading
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
-rw-r--r--DistUpgrade/DistUpgradeCache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index ff3802fa..c46a0e69 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -39,6 +39,10 @@ class MyCache(apt.Cache):
pm.GetArchives(fetcher, self._list, self._records)
return fetcher.FetchNeeded
@property
+ def additionalRequiredSpace(self):
+ """ get the size of the additonal required space on the fs """
+ return self._depcache.UsrSize
+ @property
def isBroken(self):
""" is the cache broken """
return self._depcache.BrokenCount > 0