stx-anaconda-image.bbclass: change skip to warning 73/4373/1
authorJackie Huang <jackie.huang@windriver.com>
Tue, 16 Jun 2020 02:44:27 +0000 (10:44 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Mon, 13 Jul 2020 03:11:20 +0000 (11:11 +0800)
In dry-run mode, the kickstart file will not be generated,
the existence check will always fail, so change the skip
to warning to allow the dry-run can succeed without
generated kickstart file.

Issue-ID: INF-163
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I08e4fb494d8b1a03f51d5b3bb71c2a85f02ff9a6

meta-stx/classes/stx-anaconda-image.bbclass

index acf371d..6114739 100644 (file)
@@ -392,7 +392,7 @@ python __anonymous() {
                 raise bb.parse.SkipPackage("The count of INSTALLER_TARGET_BUILD and KICKSTART_FILE not match!")
             for kickstart_file in kickstart_files.split():
                 if not os.path.exists(kickstart_file):
-                    raise bb.parse.SkipPackage("The kickstart file %s in KICKSTART_FILE doesn't exist!" % kickstart_file)
+                    bb.warn("The kickstart file %s in KICKSTART_FILE doesn't exist!" % kickstart_file)
 
 }