From f1cd8b417e3c53dff680c0dd2acf04ee8be8970b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 12 May 2006 12:53:31 +0200 Subject: * DistUpgrade/DistUpgradeCache.py: - added "additonalRequiredSpace" property * DistUpgrade/DistUpgradeControler.py: - try to detect space problems on /usr when upgrading --- DistUpgrade/DistUpgradeCache.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DistUpgrade/DistUpgradeCache.py') 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 -- cgit v1.2.3