Skip to content

Commit 333ae30

Browse files
jeckersbcgwalters
authored andcommitted
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 <jeckersb@redhat.com>
1 parent a54ab22 commit 333ae30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ ARG boot_type
246246
# Install our bootc package (only needed for the compute-composefs-digest command)
247247
RUN --network=none --mount=type=tmpfs,target=/run --mount=type=tmpfs,target=/tmp \
248248
--mount=type=bind,from=packages,src=/,target=/run/packages \
249-
rpm -Uvh --oldpackage --nosignature /run/packages/bootc-*.rpm
249+
rpm -Uvh --oldpackage --replacepkgs --nosignature /run/packages/bootc-*.rpm
250250
RUN --network=none --mount=type=tmpfs,target=/run --mount=type=tmpfs,target=/tmp \
251251
--mount=type=secret,id=secureboot_key \
252252
--mount=type=secret,id=secureboot_cert \

0 commit comments

Comments
 (0)