|
|
102e92 |
diff -up yum-3.4.3/docs/yum.conf.5.orig yum-3.4.3/docs/yum.conf.5
|
|
|
102e92 |
--- yum-3.4.3/docs/yum.conf.5.orig 2017-10-31 17:11:01.730922455 +0100
|
|
|
102e92 |
+++ yum-3.4.3/docs/yum.conf.5 2017-10-31 17:14:00.544379686 +0100
|
|
|
102e92 |
@@ -221,6 +221,18 @@ List of package names that are kernels.
|
|
|
102e92 |
updating of kernel packages and should be removed out in the yum 2.1 series.
|
|
|
102e92 |
|
|
|
102e92 |
.IP
|
|
|
102e92 |
+\fBexactarchlist\fR
|
|
|
102e92 |
+List of packages that should never change archs in an update.
|
|
|
102e92 |
+That means, if a package has a newer version available which is for a different
|
|
|
102e92 |
+compatible arch, yum will not consider that version an update if the package
|
|
|
102e92 |
+name is in this list.
|
|
|
102e92 |
+For example, on x86_64, foo-1.x86_64 won't be updated to foo-2.i686 if foo is
|
|
|
102e92 |
+in this list.
|
|
|
102e92 |
+Kernels in particular fall into this category.
|
|
|
102e92 |
+Shell globs using wildcards (eg. * and ?) are allowed.
|
|
|
102e92 |
+Default is an empty list.
|
|
|
102e92 |
+
|
|
|
102e92 |
+.IP
|
|
|
102e92 |
\fBshowdupesfromrepos\fR
|
|
|
102e92 |
Either `0' or `1'. Set to `1' if you wish to show any duplicate packages from
|
|
|
102e92 |
any repository, from package listings like the info or list commands. Set
|
|
|
102e92 |
diff -up yum-3.4.3/yum/config.py.orig yum-3.4.3/yum/config.py
|
|
|
102e92 |
--- yum-3.4.3/yum/config.py.orig 2017-10-31 17:11:01.729922458 +0100
|
|
|
102e92 |
+++ yum-3.4.3/yum/config.py 2017-10-31 17:12:46.513604398 +0100
|
|
|
102e92 |
@@ -42,6 +42,7 @@ import rpmUtils.miscutils
|
|
|
102e92 |
import Errors
|
|
|
102e92 |
import types
|
|
|
102e92 |
from misc import get_uuid, read_in_items_from_dot_dir
|
|
|
102e92 |
+import fnmatch
|
|
|
102e92 |
|
|
|
102e92 |
# Alter/patch these to change the default checking...
|
|
|
102e92 |
__pkgs_gpgcheck_default__ = False
|
|
|
102e92 |
@@ -284,6 +285,20 @@ class UrlListOption(ListOption):
|
|
|
102e92 |
return out
|
|
|
102e92 |
|
|
|
102e92 |
|
|
|
102e92 |
+class WildListOption(ListOption):
|
|
|
102e92 |
+ """An option containing a list of strings that supports shell-style
|
|
|
102e92 |
+ wildcard matching in membership test operations."""
|
|
|
102e92 |
+
|
|
|
102e92 |
+ def parse(self, s):
|
|
|
102e92 |
+ class WildList(list):
|
|
|
102e92 |
+ def __contains__(self, item):
|
|
|
102e92 |
+ if not isinstance(item, basestring):
|
|
|
102e92 |
+ return False
|
|
|
102e92 |
+ return any(fnmatch.fnmatch(item, p) for p in self)
|
|
|
102e92 |
+ patterns = super(WildListOption, self).parse(s)
|
|
|
102e92 |
+ return WildList(patterns)
|
|
|
102e92 |
+
|
|
|
102e92 |
+
|
|
|
102e92 |
class IntOption(Option):
|
|
|
102e92 |
"""An option representing an integer value."""
|
|
|
102e92 |
|
|
|
102e92 |
@@ -769,7 +784,7 @@ class YumConf(StartupConf):
|
|
|
102e92 |
names_of_0=["0", "<off>"])
|
|
|
102e92 |
kernelpkgnames = ListOption(['kernel','kernel-smp', 'kernel-enterprise',
|
|
|
102e92 |
'kernel-bigmem', 'kernel-BOOT', 'kernel-PAE', 'kernel-PAE-debug'])
|
|
|
102e92 |
- exactarchlist = ListOption(__exactarchlist_default__)
|
|
|
102e92 |
+ exactarchlist = WildListOption(__exactarchlist_default__)
|
|
|
102e92 |
tsflags = ListOption()
|
|
|
102e92 |
override_install_langs = Option()
|
|
|
102e92 |
|