Skip to content

Commit a728c5b

Browse files
committed
csmock: use --installdeps for rhel-6, too
Related: #195 PR: #204
1 parent cbefee4 commit a728c5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

csmock/csmock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ echo \"$self_pid\" > \"$lock_file\"'" \
356356
cmd = ["--install", "module-build-macros"] + cmd_add
357357
self.exec_mock_cmd(cmd, quiet=quiet)
358358

359-
if "rhel-7" in self.mock_profile:
359+
if re.search(r"rhel-[67]", self.mock_profile):
360360
# use --installdeps for legacy chroots
361361
base_cmd = "--installdeps"
362362
else:

0 commit comments

Comments
 (0)