diff mbox series

oe/spdx30_tasks: fix image deploy dir

Message ID 20260710160238.214808-1-jose.quaresma@oss.qualcomm.com
State New
Headers show
Series oe/spdx30_tasks: fix image deploy dir | expand

Commit Message

Jose Quaresma July 10, 2026, 4:02 p.m. UTC
IMGDEPLOYDIR is not populated when the artifacts comes from sstate-cache.

Instead of the task input, we should use the output because the input is
not guaranteed to remain in the file system. For example, `rm_work`
also deletes the IMGDEPLOYDIR file.

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
---
 meta/lib/oe/spdx30_tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py
index 79e18db11d..52255108a6 100644
--- a/meta/lib/oe/spdx30_tasks.py
+++ b/meta/lib/oe/spdx30_tasks.py
@@ -1435,7 +1435,7 @@  def create_rootfs_spdx(d):
 def create_image_spdx(d):
     import oe.sbom30
 
-    image_deploy_dir = Path(d.getVar("IMGDEPLOYDIR"))
+    image_deploy_dir = Path(d.getVar("DEPLOY_DIR_IMAGE"))
     manifest_path = Path(d.getVar("IMAGE_OUTPUT_MANIFEST"))
     spdx_work_dir = Path(d.getVar("SPDXIMAGEWORK"))