[oe-commits] [openembedded-core] 04/29: sstate.bbclass: update .siginfo atime

git at git.openembedded.org git at git.openembedded.org
Fri Mar 10 10:16:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit fb1499a42756faeef025122bbde98bc14f4ae61e
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon Mar 6 17:31:00 2017 +0200

    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]
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/sstate.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 23dda08..e415f68 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list