Avoiding to unconditionally adding whitespace seperator to config/control for existing configs.

This commit is contained in:
Daniel Baumann 2013-01-20 10:41:27 +01:00
parent a9b85c8d7b
commit 300a0208e8
1 changed files with 6 additions and 1 deletions

View File

@ -1484,8 +1484,13 @@ Echo_warning "WARNING: THIS VERSION OF LIVE-BUILD IS EXPERIMENTAL!"
Echo_warning "IT IS UNFINISHED AND CHANGES HEAVILY WITHOUT PRIOR NOTICE."
Echo_warning "USER DISCRETION IS ADVISED."
if [ ! -e config/control ]
then
_NEW_CONFIG="true"
fi
Set_configuration "config/control" "Configuration-Version" "${LIVE_CONFIGURATION_VERSION}"
echo "" >> config/control
[ "${_NEW_CONFIG}" = "true" ] && echo "" >> config/control
Set_configuration "config/control" "Name" "${LIVE_IMAGE_NAME}"
Set_configuration "config/control" "Architecture" "${LIVE_IMAGE_ARCHITECTURE}"
Set_configuration "config/control" "Archive-Areas" "${LIVE_IMAGE_ARCHIVE_AREAS}"