From: Jackie Huang Date: Tue, 16 Jun 2020 02:44:27 +0000 (+0800) Subject: stx-anaconda-image.bbclass: change skip to warning X-Git-Tag: cherry~37 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=1dcec3c4a38dce44590bababc14acc48d2372d6d;p=pti%2Frtp.git stx-anaconda-image.bbclass: change skip to warning 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 Change-Id: I08e4fb494d8b1a03f51d5b3bb71c2a85f02ff9a6 --- diff --git a/meta-stx/classes/stx-anaconda-image.bbclass b/meta-stx/classes/stx-anaconda-image.bbclass index acf371d..6114739 100644 --- a/meta-stx/classes/stx-anaconda-image.bbclass +++ b/meta-stx/classes/stx-anaconda-image.bbclass @@ -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) }