build/plugins: last branch wins here in contrast to general behaviour

Plugins have a special handling whereas the last active branch
gets to insert its package.  The same could be done for core, but
here we only have one package per branch and they should not
overlap in naming.
This commit is contained in:
Franco Fichtner 2021-12-01 22:35:23 +01:00
parent ee7dfd1686
commit adfd2ba5ce
1 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,16 @@ for BRANCH in ${EXTRABRANCH} ${PLUGINSBRANCH}; do
PLUGIN_DEPS=$(make -C ${STAGEDIR}${PLUGINSDIR}/${PLUGIN} ${PLUGIN_ARGS} -v PLUGIN_DEPENDS)
PLUGIN_VERS=$(make -C ${STAGEDIR}${PLUGINSDIR}/${PLUGIN} ${PLUGIN_ARGS} -v PLUGIN_PKGVERSION)
for REMOVED in ${@}; do
if [ ${REMOVED} = ${PLUGIN_NAME} ]; then
# make sure a subsequent built of the
# same package goes through by removing
# it while it may have been rebuilt on
# another branch
remove_packages ${STAGEDIR} ${REMOVED}
fi
done
if search_packages ${STAGEDIR} ${PLUGIN_NAME} ${PLUGIN_VERS}; then
# already built
continue