Writes a manifest of files unpacked in do_unpack

Signed-off-by: Joshua Watt <[email protected]>
---
 meta/classes-global/base.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index b6940bbb6ff..e543e206d08 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -177,10 +177,12 @@ python base_do_unpack() {
 
     try:
         fetcher = bb.fetch2.Fetch(src_uri, d)
-        fetcher.unpack(d.getVar('UNPACKDIR'))
+        fetcher.unpack(unpackdir)
     except bb.fetch2.BBFetchException as e:
         bb.fatal("Bitbake Fetcher Error: " + repr(e))
 
+    oe.utils.write_file_manifest(unpackdir, workdir + "/unpack-manifest.json", 
extract_lic=True, ignore_dirs=[".git"])
+
     if basedir and os.path.exists(unpackdir + '/' + basedir):
         # Compatibility magic to ensure ${WORKDIR}/git and ${WORKDIR}/${BP}
         # as often used in S work as expected.
-- 
2.43.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200404): 
https://lists.openembedded.org/g/openembedded-core/message/200404
Mute This Topic: https://lists.openembedded.org/mt/106523632/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to