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 that the dry-run can succeed without
generated kickstart file.

Story: 2008204
Task: 40988

Change-Id: I32eb8a688498713d03c915b82611cea8fcb493cf
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-09-27 10:23:43 +08:00
parent 7438b9cfd1
commit 066a5c6994

View File

@ -378,7 +378,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)
}