summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-20 13:38:20 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-18 13:07:33 +0100
commite9c681777b394b9eaa3c6cb572bfa1ca4b501d6e (patch)
tree15ed3137f2d5429bfed484d12bee54457ac007ee /meta/classes
parenta8500d9c75d25a6c2f3de1f0e58c6192debe07b5 (diff)
downloadpoky-e9c681777b394b9eaa3c6cb572bfa1ca4b501d6e.tar.gz
sstate.bbclass: update .siginfo atime
.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] (From OE-Core rev: 9f8013e3339533c7d60139c1993a5d077fe02ee5) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 8643f3d247..4fdfcc83ec 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -724,6 +724,8 @@ python sstate_sign_package () {
724# 724#
725sstate_unpack_package () { 725sstate_unpack_package () {
726 tar -xvzf ${SSTATE_PKG} 726 tar -xvzf ${SSTATE_PKG}
727 # update .siginfo atime on local/NFS mirror
728 [ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo
727 # Use "! -w ||" to return true for read only files 729 # Use "! -w ||" to return true for read only files
728 [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG} 730 [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG}
729 [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig 731 [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig