From e9403a6c80ccafe3066558fbbac73e8b64d03278 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Tue, 5 Aug 2014 19:47:01 +0200 Subject: [PATCH] Raise an error when a script is specified and not found This allows to break the build for image-configurations when there's an inconstency in the YAML definitions in the meta- package Change-Id: I76f0f4554ca23494b79d82cfc3498dfb23eead74 Signed-off-by: Stephane Desneux --- kswriter/KSWriter.py | 4 ++-- 1 file 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 ]: -- 2.7.4