]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
create-spdx-2.2.bbclass: use hardlink as well
authorMartin Jansa <martin.jansa@gmail.com>
Mon, 13 Nov 2023 12:20:43 +0000 (13:20 +0100)
committerMartin Jansa <martin.jansa@gmail.com>
Fri, 12 Jul 2024 07:36:57 +0000 (09:36 +0200)
[YOCTO #12937]

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
meta/classes/create-spdx-2.2.bbclass

index 3bcde1acc8457ce03068835317dc44d5194129df..4f58b84af6913b9036ddebf0cd1ebdf17995d721 100644 (file)
@@ -749,7 +749,7 @@ python image_combine_spdx() {
         if image_link_name:
             link = imgdeploydir / (image_link_name + suffix)
             if link != target_path:
-                link.symlink_to(os.path.relpath(target_path, link.parent))
+                os.link(target_path, link)
 
     spdx_tar_path = imgdeploydir / (image_name + ".spdx.tar.zst")
     make_image_link(spdx_tar_path, ".spdx.tar.zst")