diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-checkbuilddeps.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |