[yum-git] plugins/fastestmirror
Luke Macken
lmacken at linux.duke.edu
Tue May 20 15:10:13 UTC 2008
plugins/fastestmirror/fastestmirror.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 1e5a8cb86f744b6d38156247f16569675c0d6473
Author: Luke Macken <lmacken at redhat.com>
Date: Mon May 19 19:26:55 2008 -0400
fastestmirror: If we're using the cache, then don't load cached mirrorlist
diff --git a/plugins/fastestmirror/fastestmirror.py b/plugins/fastestmirror/fastestmirror.py
index 72933b4..dc4df92 100644
--- a/plugins/fastestmirror/fastestmirror.py
+++ b/plugins/fastestmirror/fastestmirror.py
@@ -129,13 +129,13 @@ def postreposetup_hook(conduit):
@type loadcache : Boolean
"""
global loadcache, exclude
+ opts, commands = conduit.getCmdLine()
+ if opts.cacheonly:
+ return
if loadcache:
conduit.info(2, "Loading mirror speeds from cached hostfile")
read_timedhosts()
else:
- opts, commands = conduit.getCmdLine()
- if opts.cacheonly:
- return
conduit.info(2, "Determining fastest mirrors")
repomirrors = {}
repos = conduit.getRepos()
More information about the Yum-cvs-commits
mailing list