[yum-cvs] yum-utils/plugins/fastestmirror ChangeLog, 1.2, 1.3 fastestmirror.py, 1.4, 1.5
Luke Macken
lmacken at linux.duke.edu
Thu Jun 15 02:24:55 UTC 2006
Update of /home/groups/yum/cvs/yum-utils/plugins/fastestmirror
In directory login1.linux.duke.edu:/tmp/cvs-serv11778
Modified Files:
ChangeLog fastestmirror.py
Log Message:
* Jun 14 2006 Luke Macken <lmacken at redhat.com> - 0.2.5
- Use new yum 2.9.0 api
Index: ChangeLog
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/fastestmirror/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog 7 Feb 2006 03:14:54 -0000 1.2
+++ ChangeLog 15 Jun 2006 02:24:53 -0000 1.3
@@ -1,3 +1,6 @@
+* Jun 14 2006 Luke Macken <lmacken at redhat.com> - 0.2.5
+- Use new yum 2.9.0 api
+
* Feb 06 2006 Luke Macken <lmacken at redhat.com> - 0.2.4
- Only write the timedhost file if we've re-pinged the mirrors
Index: fastestmirror.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/fastestmirror/fastestmirror.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- fastestmirror.py 7 Feb 2006 03:14:54 -0000 1.4
+++ fastestmirror.py 15 Jun 2006 02:24:53 -0000 1.5
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Version: 0.2.4
+# Version: 0.2.5
#
# A plugin for the Yellowdog Updater Modified which sorts each repo's
# mirrorlist by connection speed prior to metadata download.
@@ -39,11 +39,11 @@
import datetime
import threading
-from yum.plugins import TYPE_INTERFACE, TYPE_CORE
+from yum.plugins import TYPE_INTERACTIVE, TYPE_CORE
from yum.plugins import PluginYumExit
requires_api_version = '2.1'
-plugin_type = (TYPE_INTERFACE, TYPE_CORE)
+plugin_type = (TYPE_INTERACTIVE, TYPE_CORE)
verbose = False
socket_timeout = 3
@@ -74,8 +74,8 @@
for repo in repos.listEnabled():
if not repomirrors.has_key(str(repo)):
repomirrors[str(repo)] = FastestMirror(repo.urls).get_mirrorlist()
- repo.set('urls', repomirrors[str(repo)])
- repo.set('failovermethod', 'priority')
+ repo.urls = repomirrors[str(repo)]
+ repo.failovermethod = 'priority'
repo.check()
repo.setupGrab()
if not loadcache:
More information about the Yum-cvs-commits
mailing list