summaryrefslogtreecommitdiffstats
path: root/release-tools
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@digia.com>2012-06-12 13:16:14 +0300
committerSimo Fält <simo.falt@nokia.com>2012-06-12 13:13:51 +0200
commitd1cf13f736b925b037f98d2fea392609554c0407 (patch)
tree1e56f9f818c14444c9c80d7efd7ce641c2ef30c1 /release-tools
parentb498cf5efeaf3e6f20a56d0f51e8ca7f6f8c0cd8 (diff)
Minor update into create_installer.py
Add sanity check, if config.xml template does not exist don't just return. Force abort instead to avoid confusing errors later on. Change-Id: I8cbdf67911cccef8f7d591ca79de5d42c73e1e49 Reviewed-by: Simo Fält <simo.falt@nokia.com>
Diffstat (limited to 'release-tools')
-rw-r--r--release-tools/create_installer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/release-tools/create_installer.py b/release-tools/create_installer.py
index c362883..1bee6af 100644
--- a/release-tools/create_installer.py
+++ b/release-tools/create_installer.py
@@ -337,7 +337,10 @@ def set_config_xml():
config_template_source = SCRIPT_ROOT_DIR + os.sep + CONFIGURATIONS_DIR + os.sep + PLATFORM_IDENTIFIER + os.sep + configxml_filename
# if no config.xml template, we assume the "config" template dir already contains it
if not os.path.exists(config_template_source):
- return
+ print '*** Error!'
+ print '*** Given config.xml template does not exist: ' + config_template_source
+ print '*** Abort!'
+ sys.exit(-1)
# name has to be config.xml for installer-framework
config_template_dest_dir = CONFIG_DIR_DST