Browse Source

build: test pkg and git binaries; closes #197

pull/198/head
Franco Fichtner 1 month ago
parent
commit
123b8977cf
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      build/common.sh

+ 9
- 4
build/common.sh View File

@ -278,11 +278,16 @@ confirm|fingerprint|info|print)
;;
esac
PKGBIN=$(which pkg || true)
for WANT in git pkg; do
if [ -z "$(which ${WANT})" ]; then
echo ">>> Required binary '${WANT}' is not installed." >&2
exit 1
fi
done
for WANT in git ${PRODUCT_WANTS}; do
if ! ${PKGBIN} info ${WANT} > /dev/null; then
echo ">>> Required build package '${WANT}' is not installed." >&2
for WANT in ${PRODUCT_WANTS}; do
if ! pkg info ${WANT} > /dev/null; then
echo ">>> Required package '${WANT}' is not installed." >&2
exit 1
fi
done

Loading…
Cancel
Save