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.

(cherry picked from commit 06cbde40e2)
(cherry picked from commit 08a1145670)
This commit is contained in:
Franco Fichtner 2017-09-16 18:12:27 +02:00
parent 3bdcaf2651
commit 606da11cae

View file

@ -212,14 +212,12 @@ package: check
-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
@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