diff options
author | Chris Lumens <clumens@redhat.com> | 2007-12-18 11:09:12 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-12-18 11:09:12 -0500 |
commit | 9593841564a29155821c47dc48ae27cd2f666aa9 (patch) | |
tree | 82c7a6b541dc01fe77e606b4c99511e4b8c52ad4 | |
parent | dfed82e97a21706b7ccc7ce459e549df0e58a4c7 (diff) | |
download | anaconda-9593841564a29155821c47dc48ae27cd2f666aa9.tar.gz anaconda-9593841564a29155821c47dc48ae27cd2f666aa9.tar.xz anaconda-9593841564a29155821c47dc48ae27cd2f666aa9.zip |
Don't immediately retry on downloading a package.
-rw-r--r-- | yuminstall.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py index 6af8b6513..aae00370b 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -556,6 +556,14 @@ class AnacondaYum(YumSorter): def urlgrabberFailureCB (self, obj, *args, **kwargs): log.warning("Try %s/%s for %s failed" % (obj.tries, obj.retry, obj.url)) + delay = 0.25*(2**(obj.tries-1)) + if delay > 1: + w = anaconda.intf.waitWindow(_("Retrying"), _("Retrying package download...")) + time.sleep(delay) + w.pop() + else: + time.sleep(delay) + def getDownloadPkgs(self): downloadpkgs = [] totalSize = 0 |