summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-12-18 11:09:12 -0500
committerChris Lumens <clumens@redhat.com>2007-12-18 11:09:12 -0500
commit9593841564a29155821c47dc48ae27cd2f666aa9 (patch)
tree82c7a6b541dc01fe77e606b4c99511e4b8c52ad4 /yuminstall.py
parentdfed82e97a21706b7ccc7ce459e549df0e58a4c7 (diff)
downloadanaconda-9593841564a29155821c47dc48ae27cd2f666aa9.tar.gz
anaconda-9593841564a29155821c47dc48ae27cd2f666aa9.tar.xz
anaconda-9593841564a29155821c47dc48ae27cd2f666aa9.zip
Don't immediately retry on downloading a package.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py8
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