Merge pull request #46135 from rallytime/bp-46088

Back-port #46088 to 2017.7
This commit is contained in:
Nicole Thomas 2018-02-22 10:11:13 -05:00 committed by GitHub
commit 0398ce0482
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1396,8 +1396,8 @@ def install(name=None,
break
else:
if pkgname is not None:
if re.match('kernel(-.+)?', pkgname):
# kernel and its subpackages support multiple
if re.match('^kernel(|-devel)$', pkgname):
# kernel and kernel-devel support multiple
# installs as their paths do not conflict.
# Performing a yum/dnf downgrade will be a
# no-op so just do an install instead. It will