Browse Source

build-package.sh: break possible circular dependencies

emacs-27
Leonid Plyushch 6 years ago
parent
commit
2bdb3735b6
  1. 10
      scripts/build/termux_create_subpackages.sh

10
scripts/build/termux_create_subpackages.sh

@ -69,10 +69,12 @@ termux_create_subpackages() {
Homepage: $TERMUX_PKG_HOMEPAGE
HERE
if [ -n "$TERMUX_SUBPKG_DEPENDS" ]; then
echo "Depends: $TERMUX_PKG_NAME (= $TERMUX_PKG_FULLVERSION), $TERMUX_SUBPKG_DEPENDS" >> control
else
echo "Depends: $TERMUX_PKG_NAME (= $TERMUX_PKG_FULLVERSION)" >> control
if ! grep -qwP "[^\w]*${SUB_PKG_NAME}[^\w]*" <(echo "${TERMUX_PKG_DEPENDS}"); then
if [ -n "$TERMUX_SUBPKG_DEPENDS" ]; then
echo "Depends: $TERMUX_PKG_NAME (= $TERMUX_PKG_FULLVERSION), $TERMUX_SUBPKG_DEPENDS" >> control
else
echo "Depends: $TERMUX_PKG_NAME (= $TERMUX_PKG_FULLVERSION)" >> control
fi
fi
test ! -z "$TERMUX_SUBPKG_BREAKS" && echo "Breaks: $TERMUX_SUBPKG_BREAKS" >> control

Loading…
Cancel
Save