rpms/yum-utils/F-9 fastestmirror.patch, NONE, 1.1 yum-utils.spec, 1.39, 1.40

Tim Lauridsen (timlau) fedora-extras-commits at redhat.com
Mon May 26 08:54:58 UTC 2008


Author: timlau

Update of /cvs/pkgs/rpms/yum-utils/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4126

Modified Files:
	yum-utils.spec 
Added Files:
	fastestmirror.patch 
Log Message:
Release 1.1.4-3: fix som fastestmirror issues

fastestmirror.patch:

--- NEW FILE fastestmirror.patch ---
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")



Index: yum-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/yum-utils/F-9/yum-utils.spec,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- yum-utils.spec	21 May 2008 12:14:32 -0000	1.39
+++ yum-utils.spec	26 May 2008 08:54:07 -0000	1.40
@@ -1,10 +1,11 @@
 Summary: Utilities based around the yum package manager
 Name: yum-utils
 Version: 1.1.14
-Release: 1%{?dist}
+Release: 3%{?dist}
 License: GPL
 Group: Development/Tools
 Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz
+Patch: fastestmirror.patch
 URL: http://linux.duke.edu/yum/download/yum-utils/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
@@ -259,6 +260,9 @@
 
 %prep
 %setup -q
+%patch -p1
+# temporary fix: we don't want fastestmirror-asyncore.py
+rm -f $RPM_BUILD_ROOT/plugins/fastestmirror/fastestmirror-asyncore.py
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -453,6 +457,10 @@
 /usr/lib/yum-plugins/keys.*
 
 %changelog
+* Mon May 26 2008 Tim Lauridsen <timlau at fedoraproject.org>
+- remove the fastestmirror-asyncore.py, we dont want it in this release
+* Sat May 24 2008 Tim Lauridsen <timlau at fedoraproject.org>
+- Added fastestmirror.patch from upstream to fix issues with the fastestmirror plugin.
 * Wed May 21 2008 Tim Lauridsen <timlau at fedoraproject.org>
   Make yum-fastestmirror %%files handle the fastestmirror-asyncore.py file 
 * Wed May 21 2008 Tim Lauridsen <timlau at fedoraproject.org>




More information about the fedora-extras-commits mailing list