diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-05-13 12:22:14 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-05-13 12:22:14 (EDT) |
commit | 508dda47418973271a6c71113b8da91fe89112e8 (patch) | |
tree | e4f8e9ead929886fc4074357d371124ae151d31a | |
parent | b178e7242aea6983904b108c8714438c54c44554 (diff) |
ob-checkbuilddeps: Use "@@OPKG@@" macro.
-rw-r--r-- | src/ob-checkbuilddeps.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ob-checkbuilddeps.sh b/src/ob-checkbuilddeps.sh index 6d164b9..bb17560 100644 --- a/src/ob-checkbuilddeps.sh +++ b/src/ob-checkbuilddeps.sh @@ -78,7 +78,7 @@ check_dep() local pkg_ver= ob_parse_dep -p dep_pkg -r dep_rel -v dep_ver "${dep}" - status="$(opkg status "${dep_pkg}")" + status="$(@@OPKG@@ status "${dep_pkg}")" if ! printf '%s\n' "${status}" | grep '^Status: .*ok installed$' \ >/dev/null 2>&1; then @@ -87,8 +87,8 @@ check_dep() if [ "x${dep_rel}" != 'x' ]; then pkg_ver="$(printf '%s\n' "${status}" | \ sed -n 's/^Version: //p')" - if opkg compare-versions "${pkg_ver}" "${dep_rel}" "${dep_ver}" - then + if @@OPKG@@ compare-versions \ + "${pkg_ver}" "${dep_rel}" "${dep_ver}"; then return 1 fi fi |