summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 12:16:54 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 12:16:54 (EDT)
commitbd6de078269d6e2e4e10119a614e292de90fd2b7 (patch)
tree2e7784ddda4bb7db7b1185442c5851afd72c13fd /src
parentce3553b1f0096b60a7a3bf6298651061701dccd8 (diff)
ob-checkbuilddeps: Add comments
Diffstat (limited to 'src')
-rw-r--r--src/ob-checkbuilddeps.sh2
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