[yum-commits] plugins/versionlock

James Antill james at osuosl.org
Thu Jul 23 17:38:11 UTC 2009


 plugins/versionlock/versionlock.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit dd981d070d94120c0f2c8d447aaa51ca34354b01
Author: James Antill <james at and.org>
Date:   Thu Jul 23 13:36:39 2009 -0400

     pkgExcluder is all lower(), as excludepkgs/includepkgs are
       So we lowercase the versionlock data.
         It's possible, in theory, we'll have a false match, but no one
         should be insane enough to name things the same apart from case.

diff --git a/plugins/versionlock/versionlock.py b/plugins/versionlock/versionlock.py
index 68209e2..1e55a71 100644
--- a/plugins/versionlock/versionlock.py
+++ b/plugins/versionlock/versionlock.py
@@ -161,6 +161,10 @@ def exclude_hook(conduit):
     pkgs = {}
     for ent in _read_locklist():
         (n, v, r, e, a) = splitFilename(ent)
+        n = n.lower()
+        v = v.lower()
+        r = r.lower()
+        e = e.lower()
         if e == '': 
             e = '0'
         _version_lock_excluder_n.add(n)
@@ -172,7 +176,7 @@ def exclude_hook(conduit):
         for (pkgtup, instTup) in conduit._base.up.getObsoletesTuples():
             if instTup[0] not in _version_lock_excluder_n:
                 continue
-            _version_lock_excluder_n.add(pkgtup[0])
+            _version_lock_excluder_n.add(pkgtup[0].lower())
 
     if not _version_lock_excluder_n:
         return


More information about the Yum-commits mailing list