From 8d4e851c6f4cb9e08e4c141485636f863ecfb30b Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Sep 03 2008 14:46:51 +0000 Subject: add namearch patch --- diff --git a/0001-yum-namearch-unbreak.patch b/0001-yum-namearch-unbreak.patch new file mode 100644 index 0000000..3c0eb56 --- /dev/null +++ b/0001-yum-namearch-unbreak.patch @@ -0,0 +1,20 @@ +commit 456e5d1b6ff49652fce7c26b2dd26bb7ae7e8717 +Author: Seth Vidal +Date: Fri Aug 29 00:56:51 2008 -0400 + + make sure we do a fulle search for name.arch separations, too - so if a . is present, search the whole + shooting match, not just the name. + +diff --git a/yum/misc.py b/yum/misc.py +index b9cc387..2f2b27b 100644 +--- a/yum/misc.py ++++ b/yum/misc.py +@@ -92,7 +92,7 @@ def re_full_search_needed(s): + """ Tests if a string needs a full nevra match, instead of just name. """ + global _re_compiled_full_match + if _re_compiled_full_match is None: +- one = re.compile('.*[-\*\?\[\]].*.$') # Any wildcard or - seperator ++ one = re.compile('.*[-\.\*\?\[\]].*.$') # Any wildcard or - seperator + two = re.compile('^[0-9]') # Any epoch, for envra + _re_compiled_full_match = (one, two) + for rec in _re_compiled_full_match: