diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-03 17:41:20 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-03 17:41:20 +0000 |
| commit | bf3614bae92b55fd038923002d4f01307dd72e06 (patch) | |
| tree | 517e4a2f8c268a2cc34b57a7331edcaa1352a17b | |
| parent | 4422d2689f60ec0ac2d10db07919f746724cd9b3 (diff) | |
| download | python-apt-bf3614bae92b55fd038923002d4f01307dd72e06.tar.gz | |
* fix in the retry code
| -rw-r--r-- | DistUpgrade/DistUpgradeControler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index 1bcf81d3..71127092 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -164,7 +164,7 @@ class DistUpgradeControler(object): try: res = self.cache.update(progress) except IOError, e: - logging.error("IOError in cache.update(): '%s'. Retrying (currentTry: %s)" % (e,currentTry)) + logging.error("IOError in cache.update(): '%s'. Retrying (currentRetry: %s)" % (e,currentRetry)) currentRetry += 1 continue # no exception, so all was fine, we are done @@ -199,7 +199,7 @@ class DistUpgradeControler(object): self.cache.requiredDownload) return res - def doDistUpgrade(self, currentTry=0): + def doDistUpgrade(self): currentRetry = 0 fprogress = self._view.getFetchProgress() iprogress = self._view.getInstallProgress() @@ -219,7 +219,7 @@ class DistUpgradeControler(object): return False except IOError, e: # fetch failed, will be retried - logging.error("IOError in cache.commit(): '%s'. Retrying (currentTry: %s)" % (e,currentTry)) + logging.error("IOError in cache.commit(): '%s'. Retrying (currentTry: %s)" % (e,currentRetry)) currentRetry += 1 continue # no exception, so all was fine, we are done |
