[yum-git] plugins/fastestmirror
Luke Macken
lmacken at linux.duke.edu
Fri May 23 20:28:16 UTC 2008
plugins/fastestmirror/fastestmirror.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 50e3b20a427335f914fa3e64b96324184cb0001d
Author: Luke Macken <lmacken at redhat.com>
Date: Fri May 23 16:28:05 2008 -0400
[fastestmirror] Make sure the 'cacheonly' option exists before checking it (rh#448062)
diff --git a/plugins/fastestmirror/fastestmirror.py b/plugins/fastestmirror/fastestmirror.py
index dc4df92..add870a 100644
--- a/plugins/fastestmirror/fastestmirror.py
+++ b/plugins/fastestmirror/fastestmirror.py
@@ -130,7 +130,7 @@ def postreposetup_hook(conduit):
"""
global loadcache, exclude
opts, commands = conduit.getCmdLine()
- if opts.cacheonly:
+ if hasattr(opts, 'cacheonly') and opts.cacheonly:
return
if loadcache:
conduit.info(2, "Loading mirror speeds from cached hostfile")
More information about the Yum-cvs-commits
mailing list