Skip to content

Commit

Permalink
Drop the python version of libdnf into /osb/libdnf-python-version
Browse files Browse the repository at this point in the history
For more information, see
https://github.com/osbuild/osbuild/pull/1818/files#r1761605909

Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Sep 17, 2024
1 parent 812ef22 commit ec39a97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/images/osbuild-ci.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,13 @@ RUN git config --global --add safe.directory '*'
FROM scratch
COPY --from=target . .

#
# Drop the python version for which the python3-dnf package was installed.
# This is then used in osbuild tests to enable site-packages in the tox
# environment, when testing using the same python version.
#

RUN rpm -ql python3-dnf | grep -E '/usr/lib/python.*/site-packages/dnf/' | cut -d '/' -f 4 | uniq | sed -E 's/python([0-9])\.([0-9]+)/py\1\2/' | tee /osb/libdnf-python-version

WORKDIR /osb/workdir
ENTRYPOINT ["/osb/osbuild-ci.sh"]

0 comments on commit ec39a97

Please sign in to comment.