diff --git a/elements/opensuse/bin/install-packages b/elements/opensuse/bin/install-packages index d556c9db2..2e0fd6fe6 100755 --- a/elements/opensuse/bin/install-packages +++ b/elements/opensuse/bin/install-packages @@ -60,7 +60,10 @@ for i in "$@" do PKG_NAME=$i if [ -n "$MAP_ELEMENT" ]; then - PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i) + if ! PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i); then + echo "bin/pkg-map error. $PKG_NAME" + exit 1 + fi fi if [[ ! ${BLACKLIST[*]} =~ $PKG_NAME ]]; then WHITELIST+="$i " diff --git a/elements/yum/bin/install-packages b/elements/yum/bin/install-packages index 68409afd0..b2481dc90 100755 --- a/elements/yum/bin/install-packages +++ b/elements/yum/bin/install-packages @@ -57,7 +57,10 @@ for i in "$@" do PKG_NAME=$i if [ -n "$MAP_ELEMENT" ]; then - PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i) + if ! PKG_NAME=$(pkg-map --element $MAP_ELEMENT $i); then + echo "bin/pkg-map error. $PKG_NAME" + exit 1 + fi fi if [[ ! ${BLACKLIST[*]} =~ $PKG_NAME ]]; then WHITELIST="$WHITELIST $i"