diff options
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 } |