mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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. (From OE-Core rev: a378ec0fc2a07797310b4cd29f9f0cd88b042158) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a367523b55
commit
86c5922ebc
@@ -210,7 +210,8 @@ def license_deployed_manifest(d):
|
||||
os.unlink(lic_manifest_symlink_dir)
|
||||
|
||||
# create the image dir symlink
|
||||
os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
|
||||
if lic_manifest_dir != lic_manifest_symlink_dir:
|
||||
os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
|
||||
|
||||
def get_deployed_dependencies(d):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user