summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>2014-08-05 19:47:01 +0200
committerStéphane Desneux (sdx) <stephane.desneux@open.eurogiciel.org>2014-08-07 07:02:28 -0700
commite9403a6c80ccafe3066558fbbac73e8b64d03278 (patch)
tree9328ed6ab939988efa58fecf9f7fcd69352aa001
parent93a97b9c8438a1c55aac053422d8aee333f218b9 (diff)
downloadkickstarter-e9403a6c80ccafe3066558fbbac73e8b64d03278.tar.gz
kickstarter-e9403a6c80ccafe3066558fbbac73e8b64d03278.tar.bz2
kickstarter-e9403a6c80ccafe3066558fbbac73e8b64d03278.zip
This allows to break the build for image-configurations when there's an inconstency in the YAML definitions in the meta-<profile> package Change-Id: I76f0f4554ca23494b79d82cfc3498dfb23eead74 Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
-rw-r--r--kswriter/KSWriter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kswriter/KSWriter.py b/kswriter/KSWriter.py
index 12ba899..3117bae 100644
--- a/kswriter/KSWriter.py
+++ b/kswriter/KSWriter.py
@@ -113,7 +113,7 @@ class KSWriter():
postscript += "\n"
f.close()
else:
- print '%s/scripts/%s.post not found, skipping.' %(meta_root,scr )
+ raise KSMetaError('%s/scripts/%s.post not found, aborting.' %(meta_root,scr ))
nochrootscript = ""
for scr in conf['NoChrootScripts']:
@@ -123,7 +123,7 @@ class KSWriter():
nochrootscript += "\n"
f.close()
else:
- print '%s/scripts/%s.nochroot not found, skipping.' %(meta_root, scr )
+ raise KSMetaError('%s/scripts/%s.nochroot not found, aborting.' %(meta_root, scr ))
ptab = ""
for g in [ plat, img ]: