summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-03-25 14:14:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-31 22:21:41 +0100
commit1243b616e2b375061fafb6b504df7106a808f7d2 (patch)
treededd8336566ef5f43c6505305f36080817878cb8
parent87d8c11e7504210e377cb6201e672d32048e000c (diff)
downloadopenembedded-core-1243b616e2b375061fafb6b504df7106a808f7d2.tar.gz
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 <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toaster.bbclass2
1 files changed, 1 insertions, 1 deletions
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)