1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-23 10:59:06 +01:00

If OS_PKG unset, ignore dependencies

This commit is contained in:
Lukas Macura 2016-12-01 11:16:11 +01:00
parent 4842cdaee1
commit bc1cbaf144

View File

@ -130,11 +130,13 @@ zaf_ctrl_get_extitem_option() {
# Check dependencies based on control file # Check dependencies based on control file
zaf_ctrl_check_deps() { zaf_ctrl_check_deps() {
local deps local deps
if [ -n "$ZAF_PKG" ]; then
deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-${ZAF_PKG}" ) deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-${ZAF_PKG}" )
if ! zaf_os_specific zaf_check_deps $deps; then if ! zaf_os_specific zaf_check_deps $deps; then
zaf_err "Missing one of dependend system packages: $deps" zaf_err "Missing one of dependend system packages: $deps"
fi fi
fi
deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-bin" ) deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-bin" )
for cmd in $deps; do for cmd in $deps; do
if ! zaf_which $cmd >/dev/null; then if ! zaf_which $cmd >/dev/null; then