From: Alexandru DAMIAN Date: Wed, 25 Mar 2015 14:14:35 +0000 (+0000) Subject: toaster.bbclass: do not add symbolic links to artifacts X-Git-Tag: 2015-10~2349 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=cbb64f85dabefe267519e4b983d73c864b41e876;p=openembedded-core.git toaster.bbclass: do not add symbolic links to artifacts This patch removes the symbolic links from the artifact list. [YOCTO #7184] Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index 55d0d28157..eeca9dedd2 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass @@ -162,7 +162,7 @@ python toaster_image_dumpdata() { import stat artifact_path = os.path.join(dirpath, fn) filestat = os.stat(artifact_path) - if stat.S_ISREG(filestat.st_mode): + if not os.path.islink(artifact_path): artifact_info_data[artifact_path] = filestat.st_size except OSError as e: bb.event.fire(bb.event.MetadataEvent("OSErrorException", e), d)