diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-08 21:22:52 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-08 21:22:52 (EDT) |
commit | 07863b5998d77ba57290c42789e9e121663d8b6b (patch) | |
tree | 3d4997bdf03dd6e8e60b15774e6afb3e35d1cc9f /src | |
parent | dc34cb8e44c1415cee53ca0119946341664a48f1 (diff) |
Move build helper check into ob_get_system_path().
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-buildenv.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index d83423d..063481a 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -46,12 +46,10 @@ setup_build_helper() for dep in $(ob_get_source_parameter 'Build-Depends'); do ob_parse_dep -p dep_pkg "${dep}" >/dev/null - case "${dep_pkg}" in - 'opkhelper-'*) - printf "PATH='%s:%s'\n" "${PATH}" \ - "$(ob_get_system_path 'build-helper')/${dep_pkg}" - ;; - esac + helper="$(ob_get_system_path 'build-helper' "${dep_pkg}")" + if [ ${?} -eq 0 ]; then + printf "PATH='%s:%s'\n" "${PATH}" "${helper}" + fi done } |