diff options
author | Daniel Baumann <daniel@debian.org> | 2009-11-16 08:28:06 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2009-11-22 14:44:23 +0100 |
commit | 2d3c76985669ed2e02d9e7b4fdca2f4e381d477b (patch) | |
tree | e80a97ef9defd8d8f4705f95c370985d4187f494 /functions | |
parent | 6b73a487ab88cc1011426d34ef01d106ea0ef753 (diff) | |
download | vyos-live-build-2d3c76985669ed2e02d9e7b4fdca2f4e381d477b.tar.gz vyos-live-build-2d3c76985669ed2e02d9e7b4fdca2f4e381d477b.zip |
Updating config tree version checks.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/defaults.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index 30cdfc6f7..d179a7e1e 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -1029,12 +1029,17 @@ Check_defaults () # except when bootstrapping the functions/defaults etc.). CURRENT_CONFIG_VERSION="$(echo ${LH_CONFIG_VERSION} | awk -F. '{ print $1 }')" - if [ ${CURRENT_CONFIG_VERSION} -ge 2 ] + if [ ${CURRENT_CONFIG_VERSION} -ge 3 ] then Echo_error "This config tree is too new for this version of live-helper (${VERSION})." Echo_error "Aborting build, please get a new version of live-helper." exit 1 + elif [ ${CURRENT_CONFIG_VERSION} -eq 1 ] + then + Echo_error "This config tree is too old for this version of live-heloer (${VERSION})." + Echo_error "Aborting build, please repopulate the config tree." + exit 1 elif [ ${CURRENT_CONFIG_VERSION} -lt 1 ] then Echo_warning "This config tree does not specify a format version or has an unknown version number." |