Skip to content

Commit 3fbc2d1

Browse files
committed
Dockerfile: Fix on non-Ubuntu builds...
1 parent 826191f commit 3fbc2d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN <<EOR
99

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

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

0 commit comments

Comments
 (0)