build-package.sh: don't write dependency list if empty

This commit is contained in:
Leonid Pliushch 2019-05-09 22:56:26 +03:00
parent 19c660dc05
commit 96f46c6a5d
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ termux_create_subpackages() {
echo "Depends: $TERMUX_PKG_NAME (= $TERMUX_PKG_FULLVERSION)" >> control
fi
else
echo "Depends: $TERMUX_SUBPKG_DEPENDS" >> control
test ! -z "$TERMUX_SUBPKG_DEPENDS" && echo "Depends: $TERMUX_SUBPKG_DEPENDS" >> control
fi
test ! -z "$TERMUX_SUBPKG_BREAKS" && echo "Breaks: $TERMUX_SUBPKG_BREAKS" >> control