]> code.ossystems Code Review - openembedded-core.git/commitdiff
toaster.bbclass: do not add symbolic links to artifacts
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Wed, 25 Mar 2015 14:14:35 +0000 (14:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2015 22:07:14 +0000 (23:07 +0100)
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>
meta/classes/toaster.bbclass

index 55d0d281570bad1440223d736fc1a315afc21369..eeca9dedd2561dd50a7439c1ff6ae88dc8f86321 100644 (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)