build-package.sh: don't write dependency list if empty
This commit is contained in:
parent
19c660dc05
commit
96f46c6a5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user