From 9229028c213760dbc4610b6276d2fcf793f00b05 Mon Sep 17 00:00:00 2001 From: Hedayat Vatankhah Date: Thu, 12 May 2011 11:38:21 +0430 Subject: Overwrite MD retrieval before reposetup so that it works as expected in recent yum --- yum-fast-downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit