From bc1cbaf144374100a5cc14b4caafcbccb468f830 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Thu, 1 Dec 2016 11:16:11 +0100 Subject: [PATCH] If OS_PKG unset, ignore dependencies --- lib/ctrl.lib.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ctrl.lib.sh b/lib/ctrl.lib.sh index 27cf682..4f9b68d 100644 --- a/lib/ctrl.lib.sh +++ b/lib/ctrl.lib.sh @@ -130,10 +130,12 @@ zaf_ctrl_get_extitem_option() { # Check dependencies based on control file zaf_ctrl_check_deps() { local deps - deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-${ZAF_PKG}" ) + if [ -n "$ZAF_PKG" ]; then + deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-${ZAF_PKG}" ) - if ! zaf_os_specific zaf_check_deps $deps; then - zaf_err "Missing one of dependend system packages: $deps" + if ! zaf_os_specific zaf_check_deps $deps; then + zaf_err "Missing one of dependend system packages: $deps" + fi fi deps=$(zaf_ctrl_get_global_block <$1 | zaf_block_get_option "Depends-bin" ) for cmd in $deps; do