Skip to content

Commit a2fb7f2

Browse files
committed
The yum release_stream option should only apply to RHEL-based 8.x distos
1 parent d2ca50d commit a2fb7f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hpccm/building_blocks/yum.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ def __setup(self):
194194
self.__commands.append('yum-config-manager --set-enabled powertools')
195195

196196
if (self.__release_stream and
197-
hpccm.config.g_linux_version >= Version('8.0')):
197+
hpccm.config.g_linux_version >= Version('8.0') and
198+
hpccm.config.g_linux_version < Version('9.0')):
198199
# This needs to be a discrete, preliminary step so that
199200
# packages from release stream are available to be installed.
200201
self.__commands.append('yum install -y centos-release-stream')

0 commit comments

Comments
 (0)