bodhi: don't hard code python versions

F36 is using python3.10, but f37 is using python3.11
so, just use a wildcard here.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-12-06 17:00:44 -08:00
parent 55ead79f2a
commit a1f8e69641

View file

@ -19,7 +19,7 @@ RUN dnf install -y bodhi-server-{{bodhi_version}} python3-pyramid_sawing python3
{% endif %}
# HOTFIX for https://github.com/fedora-infra/bodhi/pull/4687
RUN sed -i -e 's|verbose=False|verbose=True|' /usr/lib/python3.10/site-packages/bodhi/server/models.py
RUN sed -i -e 's|verbose=False|verbose=True|' /usr/lib/python3*/site-packages/bodhi/server/models.py
# link the static files for a simpler httpd.conf
RUN ln -s $(python3 -Ic "import sysconfig; print(sysconfig.get_path('purelib', 'rpm_prefix'))")/bodhi/server/static/ /srv/bodhi-static