omit drivers fix

Because omit_drivers list use underline always, so when maching with it
the _mod need to be converted as well or sometimes omit-drivers will fail
silently.

Fix this by replace '-' with '_' in instmods function.

Signed-off-by: Dave Young <dyoung@redhat.com>
master
dyoung@redhat.com 2013-08-08 14:05:02 +08:00 committed by Harald Hoyer
parent e84d115b93
commit beb26a0847
1 changed files with 2 additions and 1 deletions

View File

@ -1420,7 +1420,8 @@ instmods() {
return $_ret return $_ret
fi fi


if [[ $omit_drivers ]] && [[ "$1" =~ $omit_drivers ]]; then _mod=${_mod/-/_}
if [[ $omit_drivers ]] && [[ "$_mod" =~ $omit_drivers ]]; then
dinfo "Omitting driver ${_mod##$srcmods}" dinfo "Omitting driver ${_mod##$srcmods}"
return 0 return 0
fi fi