summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeCache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-08-29 23:13:39 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-08-29 23:13:39 +0200
commitc9d03a8a633afd3b6a17b985bc640d59c6889a45 (patch)
treea480caae7d8f047b4ff939b595c7c82a9a356b26 /DistUpgrade/DistUpgradeCache.py
parentab901030dbec4180254a680dd1c49016cfc36d4a (diff)
downloadpython-apt-c9d03a8a633afd3b6a17b985bc640d59c6889a45.tar.gz
* DistUpgrade/
- actually show the estiamted download time
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
-rw-r--r--DistUpgrade/DistUpgradeCache.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index e1f892ac..37dd96db 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -36,15 +36,6 @@ class MyCache(apt.Cache):
pm.GetArchives(fetcher, self._list, self._records)
return fetcher.FetchNeeded
@property
- def estimatedDownloadTime(self):
- """ get the estimated download time """
- requiredDownload = self.requiredDownload
- timeModem = requiredDownload/(56*1024/8) # 56 kbit
- timeDSL = requiredDownload/(1024*1024/8) # 1Mbit = 1024 kbit
- s= _("The download will approximately take %s with a 56k modem and %s with "
- "a 1Mbit DSL connection" % FuzzyTimeToStr(timeModem), FuzzyTimeToStr(timeDSL))
- return s
- @property
def additionalRequiredSpace(self):
""" get the size of the additonal required space on the fs """
return self._depcache.UsrSize