Correcting config tree version check for the current version.

This commit is contained in:
Daniel Baumann 2012-12-17 13:40:28 +01:00
parent 8d69592122
commit f9b415c580
1 changed files with 16 additions and 12 deletions

View File

@ -1214,6 +1214,8 @@ Check_defaults ()
# except when bootstrapping the functions/defaults etc.).
CURRENT_CONFIG_VERSION="$(echo ${LB_CONFIG_VERSION} | awk -F. '{ print $1 }')"
if [ ${CURRENT_CONFIG_VERSION} -ne 3 ]
then
if [ ${CURRENT_CONFIG_VERSION} -ge 4 ]
then
Echo_error "This config tree is too new for this version of live-build (${VERSION})."
@ -1224,12 +1226,14 @@ Check_defaults ()
then
Echo_error "This config tree is too old for this version of live-build (${VERSION})."
Echo_error "Aborting build, please regenerate the config tree."
exit 1
else
Echo_warning "This config tree does not specify a format version or has an unknown version number."
Echo_warning "Continuing build, but it could lead to errors or different results. Please regenerate the config tree."
fi
fi
fi
if [ "${LB_DEBIAN_INSTALLER}" != "false" ]
then