[yum-git] plugins/fastestmirror

Luke Macken lmacken at linux.duke.edu
Sun May 18 02:22:34 UTC 2008


 plugins/fastestmirror/fastestmirror.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 392877ee2405987f55c0c743ff11fda87932c224
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu May 15 10:00:28 2008 -0400

    fastestmirror: Don't do anything if the user enabled cacheonly (-C) (rh#440428)

diff --git a/plugins/fastestmirror/fastestmirror.py b/plugins/fastestmirror/fastestmirror.py
index 873773a..4edea45 100644
--- a/plugins/fastestmirror/fastestmirror.py
+++ b/plugins/fastestmirror/fastestmirror.py
@@ -133,6 +133,9 @@ def postreposetup_hook(conduit):
         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