diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-12 12:53:31 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-12 12:53:31 +0200 |
| commit | f1cd8b417e3c53dff680c0dd2acf04ee8be8970b (patch) | |
| tree | 4aa47bc9a65fa06cabb4c7dc25fcc7c7bda2f76c /DistUpgrade/DistUpgradeCache.py | |
| parent | 1a1fbf466bec90d8c28fb29b3cafc70480ffa4f2 (diff) | |
| download | python-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.py | 4 |
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 |
