Commit 693c2efe authored by Guido Gunther's avatar Guido Gunther
Browse files

root.sh: Check for patched package versions

This makes sure we don't end up with broken images pulling newer
versions from Debian than we have.

This would ideally be checked in separate test step but until this is
there let's put it here rather than shipping broken images.
parent 570ab190
Pipeline #16259 passed with stage
in 18 seconds
......@@ -205,6 +205,7 @@ set -x
sudo pureos_board="${pureos_board}" \
distro="${distro}" \
packages="${packages} ${board_packages}" \
patched="${patched}" \
http_proxy="${http_apt_proxy:-${http_proxy:-}}" \
https_proxy="${https_apt_proxy:-${https_proxy:-}}" \
qemu="${qemu}" \
......
# Packages to install on all dev boards
packages="
librem5-gnome
librem5-dev-tools
librem5-gnome-dev
"
# Packages that are patched (need to have a magic tag in their version number)
# See https://source.puri.sm/snippets/20
patched="
flash-kernel
libgl1-mesa-dri
"
......@@ -100,6 +100,21 @@ function build_tarball()
}
function check_patched()
{
if [ -z "${patched}" ]; then
return
fi
for pkg in ${patched}; do
if ! chroot "${basedir}" dpkg -s ${pkg} | grep "^Version: .*pureos"; then
echo "${pkg} is not a patched version."
exit 1
fi
done
}
function cleanup_chroot()
{
chroot "${basedir}" apt-get clean
......@@ -286,6 +301,7 @@ case "${pureos_board}" in
;;
esac
check_patched
create_report > "./tmp/${pureos_board}-report.log"
create_stamp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment