summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHedayat Vatankhah <hedayat.fwd@gmail.com>2011-05-12 11:38:21 +0430
committerHedayat Vatankhah <hedayat.fwd@gmail.com>2011-05-12 11:38:21 +0430
commit9229028c213760dbc4610b6276d2fcf793f00b05 (patch)
treec1ddab54f2449701875b8cbac04f19070191950c
parent42697509869b9470c70368590156f7c72c92763d (diff)
downloadyum-fast-downloader-9229028c213760dbc4610b6276d2fcf793f00b05.tar.gz
yum-fast-downloader-9229028c213760dbc4610b6276d2fcf793f00b05.tar.xz
yum-fast-downloader-9229028c213760dbc4610b6276d2fcf793f00b05.zip
Overwrite MD retrieval before reposetup so that it works as expected in recent yum
-rw-r--r--yum-fast-downloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yum-fast-downloader.py b/yum-fast-downloader.py
index 4840fd0..f5f2dd2 100644
--- a/yum-fast-downloader.py
+++ b/yum-fast-downloader.py
@@ -135,7 +135,7 @@ def postconfig_hook(conduit):
"--max-concurrent-downloads={0}".format(max_concurrent_downloads))
-def postreposetup_hook(conduit):
+def prereposetup_hook(conduit):
ret_insmethod = type(YumRepository._retrieveMD)
YumRepository._retrieveMD = ret_insmethod(myRetrieveMD, None, YumRepository)
# repos = conduit.getRepos()