Raise an error when a script is specified and not found 78/25478/3 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/common/20140812.175515 accepted/tizen/ivi/20160218.024901 submit/tizen_common/20140812.150926 submit/tizen_common/20140812.151815 submit/tizen_common/20140812.170532 submit/tizen_ivi/20140818.000000 submit/tizen_ivi/20140818.000001 submit/tizen_ivi/20140818.000002 submit/tizen_ivi/20140820.000000 submit/tizen_ivi/20140822.000000 submit/tizen_ivi/20140825.000000 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Tue, 5 Aug 2014 17:47:01 +0000 (19:47 +0200)
committerStéphane Desneux (sdx) <stephane.desneux@open.eurogiciel.org>
Thu, 7 Aug 2014 14:02:28 +0000 (07:02 -0700)
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>
kswriter/KSWriter.py

index 12ba899..3117bae 100644 (file)
@@ -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 ]: