From: Stephane Desneux Date: Tue, 5 Aug 2014 17:47:01 +0000 (+0200) Subject: Raise an error when a script is specified and not found X-Git-Tag: accepted/tizen/common/20140812.175515^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0.2014.q3_common;p=platform%2Fupstream%2Fkickstarter.git 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 --- 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 ]: