toaster.bbclass: do not add symbolic links to artifacts

This patch removes the symbolic links from the artifact list.

[YOCTO #7184]

(From OE-Core rev: cbb64f85dabefe267519e4b983d73c864b41e876)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandru DAMIAN 2015-03-25 14:14:35 +00:00 committed by Richard Purdie
parent 3837f29422
commit 66710890c6
1 changed files with 1 additions and 1 deletions

View File

@ -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)