should_source_module(): refined check

Do not bail out early if no install exists.
Check also for installkernel.
master
Harald Hoyer 2009-08-27 12:52:24 +02:00
parent 9ede1929b2
commit 973c23b0d6
1 changed files with 1 additions and 1 deletions

View File

@ -295,11 +295,11 @@ check_module_deps() {

should_source_module() {
local dep
[[ -x $1/install ]] || return 1
if [[ $kernel_only = yes ]]; then
[[ -x $1/installkernel ]] && return 0
return 1
fi
[[ -x $1/install ]] || [[ -x $1/installkernel ]] || return 1
[[ -x $1/check ]] || return 0
"$1/check" $hostonly || return 1
for dep in $("$1/check" -d); do