build: make sure to update the latest link on rebuild

It means that we block subsequent builds of the same package in general.
This commit is contained in:
Franco Fichtner 2021-12-01 22:34:47 +01:00
parent 26247a5a8e
commit ee7dfd1686
1 changed files with 6 additions and 0 deletions

View File

@ -778,6 +778,7 @@ extract_packages()
rm -rf ${BASEDIR}${PACKAGESDIR}/All
mkdir -p ${BASEDIR}${PACKAGESDIR}/All
mkdir -p ${BASEDIR}${PACKAGESDIR}/Latest
PACKAGESET=$(find_set packages)
@ -950,6 +951,11 @@ custom_packages()
make -C ${2} ${3} FLAVOUR=${PRODUCT_FLAVOUR} PKGDIR=${PACKAGESDIR}/All package
EOF
(
cd ${1}${PACKAGESDIR}/Latest
ln -sfn ../All/${4}-${5}.txz ${4}.txz
)
if [ -n "${PRODUCT_REBUILD}" ]; then
echo ">>> Rebuilt version ${5} for ${4}" >> ${1}/.pkg-warn
fi