diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-03-06 17:31:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 14:50:10 +0000 |
commit | 51edde653707e7a3cd2186082458f01f32cd1996 (patch) | |
tree | 0acfc1f91022250a7f0ef4a00c2b4adfabed1d9b | |
parent | e0a94a9adeb37637b6b4e08f0f6da0a63d3fbe7c (diff) | |
download | poky-51edde653707e7a3cd2186082458f01f32cd1996.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: fb1499a42756faeef025122bbde98bc14f4ae61e)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/sstate.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 23dda082ca..e415f68870 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -747,6 +747,8 @@ python sstate_sign_package () { | |||
747 | # | 747 | # |
748 | sstate_unpack_package () { | 748 | sstate_unpack_package () { |
749 | tar -xvzf ${SSTATE_PKG} | 749 | tar -xvzf ${SSTATE_PKG} |
750 | # update .siginfo atime on local/NFS mirror | ||
751 | [ -h ${SSTATE_PKG}.siginfo ] && touch -a ${SSTATE_PKG}.siginfo | ||
750 | # Use "! -w ||" to return true for read only files | 752 | # Use "! -w ||" to return true for read only files |
751 | [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG} | 753 | [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG} |
752 | [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig | 754 | [ ! -w ${SSTATE_PKG}.sig ] || [ ! -e ${SSTATE_PKG}.sig ] || touch --no-dereference ${SSTATE_PKG}.sig |