Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sstate: Ensure siginfo and sig files are also touched
@ 2015-11-18 11:52 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-11-18 11:52 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d09e27a..9ca4c6d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -692,6 +692,8 @@ sstate_unpack_package () {
 	tar -xmvzf ${SSTATE_PKG}
 	# Use "! -w ||" to return true for read only files
 	[ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
+	[ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig
+	[ ! -w ${SSTATE_PKG}.siginfo ] || [ ! -e ${SSTATE_PKG}.siginfo ] || touch --no-dereference ${SSTATE_PKG}.siginfo
 }
 
 BB_HASHCHECK_FUNCTION = "sstate_checkhashes"




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-18 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 11:52 [PATCH] sstate: Ensure siginfo and sig files are also touched Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox