README file (and some fixes)

This commit is contained in:
Alexander Gehrke (crater2150) 2013-03-18 13:25:38 +01:00
parent 6023ed42bf
commit 1375ee2f3c
4 changed files with 56 additions and 8 deletions

View file

@ -76,6 +76,7 @@ mod_deps() {
while read relation dep; do
mod_check_dep $modpath $relation $dep
[ $? -gt 0 ] && return $?;
done < "$modpath/depend"
return 0;
}
@ -103,8 +104,9 @@ mod_check_dep() {
fi
;;
"after")
if [ -z "$ZMODLOAD_ONLY" ] \
|| in_array "$dep" "${(@)ZMODLOAD_ONLY}"; then
if ([ -z "$ZMODLOAD_ONLY" ] \
|| in_array "$dep" "${(@)ZMODLOAD_ONLY}")
&& ! in_array "$dep" "${(@)ZMODLOAD_BLACKLIST}"; then
mod_queue "$dep" is_dep ${modpath};
fi ;;
"block")