diff --git a/yum-utils-0.6-fastestmirror-newapi.patch b/yum-utils-0.6-fastestmirror-newapi.patch new file mode 100644 index 0000000..c25a19a --- /dev/null +++ b/yum-utils-0.6-fastestmirror-newapi.patch @@ -0,0 +1,35 @@ +--- plugins/fastestmirror/fastestmirror.py.orig 2006-02-10 00:47:32.000000000 -0500 ++++ plugins/fastestmirror/fastestmirror.py 2006-06-22 17:55:13.000000000 -0400 +@@ -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: diff --git a/yum-utils.spec b/yum-utils.spec index 9ddb2a0..5e039af 100644 --- a/yum-utils.spec +++ b/yum-utils.spec @@ -1,7 +1,7 @@ Summary: Utilities based around the yum package manager Name: yum-utils Version: 0.6 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL Group: Development/Tools Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz