fix kernel subpackages install bug

This commit is contained in:
zr 2018-02-17 23:31:26 +08:00 committed by rallytime
parent 6cea44ee95
commit 57a60f62a3
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

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