]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: fetch .siginfo files from SSTATE_MIRROR
authorSaul Wold <sgw@linux.intel.com>
Tue, 4 Dec 2012 00:32:44 +0000 (00:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2012 12:30:38 +0000 (12:30 +0000)
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]

[RP: Small tweaks]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 832b39e7ee7fa02290217af494f85c43ec047e5d..29c10072fed1ed6823f575812318a1ee9a6de221 100644 (file)
@@ -216,6 +216,8 @@ def sstate_installpkg(ss, d):
 
     if not os.path.exists(sstatepkg):
         pstaging_fetch(sstatefetch, sstatepkg, d)
+    if not os.path.exists(sstagepkg + ".siginfo"):
+        pstaging_fetch(sstatefetch + ".siginfo", ssstatepkg + ".siginfo", d)
 
     if not os.path.isfile(sstatepkg):
         bb.note("Staging package %s does not exist" % sstatepkg)