From bd6de078269d6e2e4e10119a614e292de90fd2b7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 12:16:54 -0400 Subject: ob-checkbuilddeps: Add comments --- diff --git a/src/ob-checkbuilddeps.sh b/src/ob-checkbuilddeps.sh index e553c07..a986644 100644 --- a/src/ob-checkbuilddeps.sh +++ b/src/ob-checkbuilddeps.sh @@ -28,6 +28,7 @@ check_dep() local status= local pkg_ver= + # Leave stdout for caller to collect. ob_parse_dep -P dep_pkg -r dep_rel -v dep_ver "${dep}" status="$("${OPKG}" status "${dep_pkg}")" @@ -38,6 +39,7 @@ check_dep() if [ "x${dep_rel}" != 'x' ]; then pkg_ver="$(printf '%s\n' "${status}" | \ sed -n 's/^Version: //p')" + # opkg returns 1 on a true comparison, 0 on a false comparison. if "${OPKG}" compare-versions \ "${pkg_ver}" "${dep_rel}" "${dep_ver}"; then return 1 -- cgit v0.9.1