From 300a0208e82bdba5d5457dd10bf53ad88721d23d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 20 Jan 2013 10:41:27 +0100 Subject: [PATCH] Avoiding to unconditionally adding whitespace seperator to config/control for existing configs. --- scripts/build/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/build/config b/scripts/build/config index c5b01db74..c2a59192c 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -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}"