chore: check-docker-update
Before this patch, each patch version is build twice as the script output a package to be updgraded : cubicweb. As the cubicweb package is mark as hold (see DockerFile), it will not be upgraded even with cache invalidation.
This patch intents to speed the build process. See the job on jenkins
To test this patch:
# 3.26.16 is not the last patch version in the 3.26 series
docker run --rm -it -u root --entrypoint='/bin/bash' logilab/cubicweb:py37-buster-3.26.16
apt update
# old command to check if a package has to be upgraded
# apt list --upgradable will list pyhton3-cubiweb
apt list --upgradable 2>/dev/null | grep "upgradable from" && echo "oui" || echo "non"
# new command to test (will ignore cubiweb
apt list --upgradable 2>/dev/null | grep "upgradable from" | grep --invert-match "cubicweb" && echo "oui" || echo "non"
To confirm cubicweb is on hold in container:
root@5c5e0c50526d:/home/cubicweb# dpkg -l | grep cubicweb
hi python3-cubicweb 3.26.16-1+deb10u1 all CubicWeb framework (Python 3)
hi
means holds and installed