summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-18 11:52:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-25 08:09:00 +0000
commit03f15e51998a3ef65a5b68cb7cbf724f4388c289 (patch)
tree14b7ae274db7392c96cc8ad67096dd9251632e5b /meta/classes/sstate.bbclass
parent615ccaecf48114d0a2af50345f1a04ac0b00cd84 (diff)
downloadpoky-03f15e51998a3ef65a5b68cb7cbf724f4388c289.tar.gz
sstate: Ensure siginfo and sig files are also touched
Maintaining an sstate mirror is complicated at the moment as only the main sstate tgz files have their timestamp updated when they're used. This causes problems as the siginfo files can be removed from the server due to inactivity but the sstate fetch code tries to fetch them leading to confusing warnings and reduced debug capability. This change ensures we touch any sig/siginfo files present and should help ageing of the objects on sstate mirrors. It doesn't handle the intermediate task siginfo files but those are never fetched by the current sstate code so are an order of magnitude less problematic. (From OE-Core rev: 80b3974081c4a8c604e23982a6db8fb32c616058) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index ba18f54428..43c3e7e2e6 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -706,6 +706,8 @@ sstate_unpack_package () {
706 tar -xmvzf ${SSTATE_PKG} 706 tar -xmvzf ${SSTATE_PKG}
707 # Use "! -w ||" to return true for read only files 707 # Use "! -w ||" to return true for read only files
708 [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG} 708 [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
709 [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
710 [ ! -w ${SSTATE_PKG}.siginfo ] || [ ! -e ${SSTATE_PKG}.siginfo ] || touch --no-dereference ${SSTATE_PKG}.siginfo
709} 711}
710 712
711BB_HASHCHECK_FUNCTION = "sstate_checkhashes" 713BB_HASHCHECK_FUNCTION = "sstate_checkhashes"