Skip to content

Commit

Permalink
csmock: force reinstall of module-build-macros
Browse files Browse the repository at this point in the history
If a build with the same NVR is installed from the default build
repository, we need to uninstall it first, to force its installation
from our local build repository (obtained by bld2repo).
  • Loading branch information
kdudka committed May 9, 2022
1 parent dc626de commit 407728c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/csmock
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ echo \"$self_pid\" > \"$lock_file\"'" \
cmd_add += ["--addrepo", url]

if re.match("^.*\\.module\\+el.*\\.src\\.rpm$", srpm):
# we need to install "module-build-macros" first for a modular build
# we need to reinstall "module-build-macros" first for a modular build
self.exec_mock_cmd(["--remove", "module-build-macros"], quiet=quiet)
cmd = ["--install", "module-build-macros"] + cmd_add
self.exec_mock_cmd(cmd, quiet=quiet)

Expand Down

0 comments on commit 407728c

Please sign in to comment.