Framework: more often than not, plugins are not installed

So in order to bootstrap a plugin during an upgrade we allow
the upgrade without the package in place.
This commit is contained in:
Franco Fichtner 2017-09-16 18:12:27 +02:00
parent 0bdb38bc36
commit 06cbde40e2

View file

@ -213,15 +213,13 @@ package: check
@${PKG} create -v -m ${WRKSRC} -r ${WRKSRC} \
-p ${WRKSRC}/plist -o ${PKGDIR}
upgrade-check: check
@if ! ${PKG} info ${PLUGIN_PKGNAME} > /dev/null; then \
echo ">>> Cannot find package. Please run 'pkg install ${PLUGIN_PKGNAME}'" >&2; \
exit 1; \
fi
upgrade-check:
@rm -rf ${PKGDIR}
upgrade: upgrade-check package
@${PKG} delete -fy ${PLUGIN_PKGNAME}
@if ${PKG} info ${PLUGIN_PKGNAME} > /dev/null; then \
${PKG} delete -fy ${PLUGIN_PKGNAME}; \
fi
@${PKG} add ${PKGDIR}/*.txz
mount: check