summaryrefslogtreecommitdiffstats
path: root/scripts/oe-pkgdata-browser
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2021-11-07 11:36:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-15 11:53:55 +0000
commitc989f6f4e0388da7a66a1dfccdcdd949a4f8193b (patch)
tree412bf75584d0d50bd47d60415bed120deeb7141b /scripts/oe-pkgdata-browser
parent8392750d4fdebdbc30d5bdb136899ce8c638f035 (diff)
downloadpoky-c989f6f4e0388da7a66a1dfccdcdd949a4f8193b.tar.gz
sstate: another fix for touching files inside pseudo
This patch is a fixup for 676757f "sstate: fix touching files inside pseudo" running the 'id' command inside the sstate_unpack_package function shows that this funcion run inside the pseudo: uid=0(root) gid=0(root) groups=0(root) The check for [ -w ${SSTATE_PKG} ] and [ -O ${SSTATE_PKG}.siginfo ] will always return true and the touch can fail when the real user don't have permission or in readonly filesystem. As the documentation refers: - the file test operator "-w" check if the file has write permission (for the user running the test). - the file test operator "-O" check if you are owner of file We can avoid this test running the touch and mask any return errors that we have. (From OE-Core rev: 29fc85997ade490ae46ffca37ef8e1a56957c876) (From OE-Core rev: e7d94a9cc5ab1b2c5d160fd06d643a4bc3409d26) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5b9210d66c78bb3f79056e5586cea7b0edd714a9) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-pkgdata-browser')
0 files changed, 0 insertions, 0 deletions