[yum-commits] 2 commits - plugins/fedorakmod README

skvidal at osuosl.org skvidal at osuosl.org
Wed Feb 11 13:22:48 UTC 2009


 README                           |    4 ++--
 plugins/fedorakmod/fedorakmod.py |    5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 0d7485f6b5c938bfb58ca61ca7466f9f50947cba
Merge: 0ed87bb... 7e6d520...
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Feb 11 08:22:05 2009 -0500

    Merge branch 'master' of ssh://yum.baseurl.org/srv/projects/yum/git/yum-utils
    
    * 'master' of ssh://yum.baseurl.org/srv/projects/yum/git/yum-utils:
      Simple hacky workaround for BZ 484603, debuginfo-install x x-debuginfo
      Fix the way we downgrade ftp mirrors, for hosts which give us both

commit 0ed87bbf887e0aeb49769127c006407b60175adb
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Feb 11 08:21:17 2009 -0500

    apply patch from Felix Schwarz to fix deprecation warnings in fedorakmod plugin
    and a wrong url in the README

diff --git a/README b/README
index 913a9cc..8abe805 100644
--- a/README
+++ b/README
@@ -6,12 +6,12 @@ details.
 
 If you encounter any problems using these utilities feel free to send 
 an e-mail to the yum mailing list: 
-https://lists.linux.duke.edu/mailman/listinfo/yum
+http://lists.baseurl.org/mailman/listinfo/yum
 
 If you have created an utility related to yum and you'd like to look
 into getting it included into this set please e-mail the yum-devel 
 mailing list:
-https://lists.linux.duke.edu/mailman/listinfo/yum-devel
+http://lists.baseurl.org/mailman/listinfo/yum-devel
 
 
 -- Description of the utilities --
diff --git a/plugins/fedorakmod/fedorakmod.py b/plugins/fedorakmod/fedorakmod.py
index 4a237c6..d9fcc4b 100644
--- a/plugins/fedorakmod/fedorakmod.py
+++ b/plugins/fedorakmod/fedorakmod.py
@@ -22,7 +22,6 @@
 
 import os
 import rpmUtils
-from sets import Set
 from yum import packages
 from yum.constants import TS_INSTALL
 from yum.plugins import TYPE_CORE, PluginYumExit
@@ -31,7 +30,7 @@ from rpm import RPMPROB_FILTER_OLDPACKAGE
 requires_api_version = '2.4'
 plugin_type = (TYPE_CORE,)
 
-kernelProvides = Set([ "kernel-%s" % a for a in rpmUtils.arch.arches.keys() ])
+kernelProvides = set([ "kernel-%s" % a for a in rpmUtils.arch.arches.keys() ])
 
 # We shouldn't need this if we didn't have to fake stuff so much
 kernelVariants = ["bigmem", "enterprise", "smp", "hugemem", "PAE",
@@ -222,7 +221,7 @@ def pinKernels(c, newKernels, installedKernels, modules):
             kmods = [ po.kmodName for po in table[prov] ]
         else:
             kmods = []
-        if Set(kmods) != Set(names):
+        if set(kmods) != set(names):
             c.info(2, "Removing kernel %s from install set" % str(prov))
             # XXX: This wants a pkgtuple which will probably change RSN
             c.getTsInfo().remove(kpo.pkgtup)


More information about the Yum-commits mailing list