Skip to content

Commit

Permalink
Dockerfile: Fix on non-Ubuntu builds...
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Oct 6, 2024
1 parent 826191f commit 3fbc2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN <<EOR

# Workaround for outstanding fix of https://bugs.launchpad.net/ubuntu/+source/python-build/+bug/1992108
. /etc/os-release
if [ ${UBUNTU_CODENAME} = 'jammy' ]; then
if [ ${UBUNTU_CODENAME-} = 'jammy' ]; then
echo >>/etc/apt/sources.list.d/jammy-proposed.list 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-proposed universe'
echo >>/etc/apt/sources.list.d/jammy-proposed.list 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-proposed universe'
fi
Expand Down Expand Up @@ -51,7 +51,7 @@ RUN <<EOR

# Focal workaround, until it is removed completely, builds a semi-broken image (About does not work at minimum)
. /etc/os-release
if [ ${UBUNTU_CODENAME} = 'focal' ]; then
if [ ${UBUNTU_CODENAME-} = 'focal' ]; then
sed -i -e 's/>=3.9/>=3.8/' -e 's/py39/py38/' pyproject.toml
fi

Expand Down

0 comments on commit 3fbc2d1

Please sign in to comment.