sstate: fetch .siginfo files from SSTATE_MIRROR
PATCH 1/1 sstate: fetch .siginfo files from SSTATE_MIRROR
This would be useful for doing siginfo compares to understand why a build is not reusing something when using SSTATE_MIRROR. No error will be reported if it fails to find the .siginfo file
[YOCTO #2898]
Signed-off-by Saul Wold <[email protected]>
--- meta/classes/sstate.bbclass | 4 ++++ 1 file changed, 4 insertions(+)
meta/classes/sstate.bbclass +4 -0
@@ -212,10 +212,14 @@ def sstate_installpkg(ss, d): sstateinst = d.expand("${WORKDIR}/sstate-install-%s/" % ss['name']) sstatefetch = d.getVar('SSTATE_PKGNAME', True) + '_' + ss['name'] + ".tgz" + siginfofetch = d.getVar('SSTATE_PKGNAME', True) + '_' + ss['name'] + ".tgz.siginfo" sstatepkg = d.getVar('SSTATE_PKG', True) + '_' + ss['name'] + ".tgz" + siginfopkg = d.getVar('SSTATE_PKG', True) + '_' + ss['name'] + ".tgz.siginfo" if not os.path.exists(sstatepkg): pstaging_fetch(sstatefetch, sstatepkg, d) + if not os.path.exists(siginfopkg): + pstaging_fetch(siginfofetch, siginfopkg, d) if not os.path.isfile(sstatepkg): bb.note("Staging package %s does not exist" % sstatepkg)
Signature · 1 line
1.8.0