From 2fa42cbb42126eb3366de1a199d9f8d0834f7cf9 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Thu, 23 Apr 2026 10:27:18 -0400 Subject: [PATCH] Use `--replacepkgs` when installing local builds Trying to run tests locally against rawhide was failing, because I have no local modifications and the same package NEVRA already exists in the rhcontainerbot/bootc copr repo which is installed previously. Now if we have the same NEVRA via the local build we'll just re-install the local version as effectively a no-op instead of failing. Signed-off-by: John Eckersberg --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b9f15a63a..86eb4c2de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -246,7 +246,7 @@ ARG boot_type # Install our bootc package (only needed for the compute-composefs-digest command) RUN --network=none --mount=type=tmpfs,target=/run --mount=type=tmpfs,target=/tmp \ --mount=type=bind,from=packages,src=/,target=/run/packages \ - rpm -Uvh --oldpackage --nosignature /run/packages/bootc-*.rpm + rpm -Uvh --oldpackage --replacepkgs --nosignature /run/packages/bootc-*.rpm RUN --network=none --mount=type=tmpfs,target=/run --mount=type=tmpfs,target=/tmp \ --mount=type=secret,id=secureboot_key \ --mount=type=secret,id=secureboot_cert \