summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-01 15:57:23 +0200
committerEd Bartosh <ed.bartosh@linux.intel.com>2017-03-06 17:26:46 +0200
commitb8d97553d794250fa322e022944ac5a570a72334 (patch)
treeef843c4cca48de6cf045e4a7c48feb6496772314
parent4188e53f803aefdb26768abfad591283662cd27e (diff)
downloadpoky-contrib-ed/oe-core/atime-siginfo-mirror-10857.tar.gz
poky-contrib-ed/oe-core/atime-siginfo-mirror-10857.tar.bz2
poky-contrib-ed/oe-core/atime-siginfo-mirror-10857.zip
sstate.bbclass: update .siginfo atimeed/oe-core/atime-siginfo-mirror-10857
.siginfo files are not being accessed from local or NFS-mounted sstate mirrors when sstate package is installed, so their atime is not updated. If sstate mirror is cleaned based on access time, they get deleted, even though they are still being used. Updated atime of .siginfo symlinks with 'touch -a'. This command dereferences symlinks pointing to the local mirror and updates atime of the .siginfo file on the mirror. [YOCTO #10857] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-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 23dda082ca4..e415f68870e 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -747,6 +747,8 @@ python sstate_sign_package () {
#
sstate_unpack_package () {
tar -xvzf ${SSTATE_PKG}
+ # update .siginfo atime on local/NFS mirror
+ [ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
# 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