Skip to content

Commit 54fd3f0

Browse files
committed
Update packaging container for new codenames
1 parent e9efbdf commit 54fd3f0

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

packaging/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
ARG DEBIAN_RELEASE=stretch
22
FROM ev3dev/ev3dev-$DEBIAN_RELEASE-ev3-base
33

4+
ARG DEBIAN_RELEASE
5+
ENV DISTRO=$DEBIAN_RELEASE
6+
47
# copy QEMU
58
COPY qemu-arm-static /usr/bin/qemu-arm-static
69

packaging/package.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ PKG="jri-${DEB_JRI_MAJOR}-${DEB_JRI_PLATFORM}"
4141
PKGVER="${DEB_JRI_MAJOR}.${DEB_JRI_MINOR}.${DEB_JRI_PATCH}~${DEB_JRI_BUILD}"
4242
PKGNAME="${PKG}_${PKGVER}"
4343
DATE=$(LC_ALL=C date -R)
44-
if [ ! -z "$DISTRO" ]; then
45-
DISTRO=stable
44+
if [ -z "$DISTRO" ]; then
45+
echo "Please choose a target distro." >&2
46+
exit 1
47+
else
48+
echo "Building for ev3dev-$DISTRO"
4649
fi
4750

4851
PKGDIR="/build/pkg/$PKGNAME"

0 commit comments

Comments
 (0)