]> code.ossystems Code Review - openembedded-core.git/commit
license_image.bbclass: Don't attempt to symlink to the same file
authorMike Looijmans <mike.looijmans@topic.nl>
Fri, 5 Feb 2021 14:53:33 +0000 (15:53 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 9 Feb 2021 01:08:51 +0000 (09:08 +0800)
commita378ec0fc2a07797310b4cd29f9f0cd88b042158
treeacb8f65c7d7f1b45f4b2052ec3ad5266a6719669
parent09127557fd9332472a168efba694a4764b20edd0
license_image.bbclass: Don't attempt to symlink to the same file

Sometimes (that is, in all my builds) the lic_manifest_dir and
lic_manifest_symlink_dir end up pointing to the same file, resulting
in an error like this:
  Exception: FileExistsError: [Errno 17] File exists: '/.../tmp-glibc/deploy/licenses/my-image-tdkz15' -> '/.../tmp-glibc/deploy/licenses/my-image-tdkz15'

First check to see if this is the case before attempting to create
the link.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 50f83fb542065eaf7a20ac07b63ae06441ada180)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/license_image.bbclass