mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
a8500d9c75
commit
e9c681777b
@@ -724,6 +724,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
|
||||
|
||||
Reference in New Issue
Block a user