Pmodiules/modbuild: bugfix in extracting dependencies from variant file

This commit is contained in:
2016-04-21 14:09:35 +02:00
parent f932a6da83
commit 990c97295f
+1 -1
View File
@@ -345,7 +345,7 @@ if [[ ${bootstrap} == no ]]; then
fi
if [[ -n "${variants}" ]]; then
with_modules+=( $(egrep "$V\s.*${OS}" "${variants}" |
awk "${with_modules_awk_pattern} {for (i=4; i<NF; i++) printf \$i \" \"; print \$NF}" | tail -1) )
awk "${with_modules_awk_pattern} {for (i=4; i<=NF; i++) printf \$i \" \"}" | tail -1) )
else
if [[ -r "${BUILD_BLOCK_DIR}/with_modules-$V" ]]; then
with_modules+=( $(cat "${BUILD_BLOCK_DIR}/with_modules-$V") )