dev_scripts: Alter the shadow-utils fix

Instead of reinstalling shadow-utils, use the actual fix that the Fedora
devs have suggested (rpm --restore shadow-utils). The previous method
does not seem to work on Fedora 37, and it threw the following error
when building the development environment:

    Installed package shadow-utils-2:4.12.3-3.fc37.x86_64 (from koji-override-0) not available.
    Error: No packages marked for reinstall.
    Error: building at STEP "RUN dnf reinstall -y shadow-utils && dnf clean all": while running runtime: exit status 1
This commit is contained in:
Alex Pyrgiotis 2023-02-07 15:46:12 +02:00 committed by Alex Pyrgiotis
parent e7eb3bf18b
commit 081c68c27f
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -74,7 +74,7 @@ RUN dnf install -y rpm-build podman python3 make python3-pip qt5-qtbase-gui \
# FIXME: Drop this fix after it's resolved upstream.
# See https://github.com/freedomofpress/dangerzone/issues/286#issuecomment-1347149783
RUN dnf reinstall -y shadow-utils && dnf clean all
RUN rpm --restore shadow-utils
RUN dnf install -y mupdf && dnf clean all
"""
@ -120,7 +120,7 @@ RUN dnf install -y mupdf && dnf clean all
# FIXME: Drop this fix after it's resolved upstream.
# See https://github.com/freedomofpress/dangerzone/issues/286#issuecomment-1347149783
RUN dnf reinstall -y shadow-utils && dnf clean all
RUN rpm --restore shadow-utils
"""
# The Dockerfile for building an environment with Dangerzone installed in it. Parts of