summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-26 11:11:12 +0000
committerSteve Sakoman <steve@sakoman.com>2025-02-12 06:29:34 -0800
commit94efc6a14c09886a8e2837d5b3978057cf2c64d2 (patch)
tree06e10a1e734249ed3f2556e3b44ab5b497d86a56
parent6b1572b4f2b571af70d3ace8de7cc15aab20273a (diff)
downloadpoky-94efc6a14c09886a8e2837d5b3978057cf2c64d2.tar.gz
resulttool/store: Fix permissions of logarchive
We want the results directory to be visable to other users, tweak the permissions of the created directory to ensure this is the case. (From OE-Core rev: bf121dc86f2c3443673f5ff3d486237678044479) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ed9d887e8d71a800db19826264de552f7736dc6a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--scripts/lib/resulttool/store.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/resulttool/store.py b/scripts/lib/resulttool/store.py
index 578910d234..b143334e69 100644
--- a/scripts/lib/resulttool/store.py
+++ b/scripts/lib/resulttool/store.py
@@ -87,6 +87,7 @@ def store(args, logger):
87 if args.logfile_archive: 87 if args.logfile_archive:
88 logdir = args.logfile_archive + "/" + tagname 88 logdir = args.logfile_archive + "/" + tagname
89 shutil.copytree(tempdir, logdir) 89 shutil.copytree(tempdir, logdir)
90 os.chmod(logdir, 0o755)
90 for root, dirs, files in os.walk(logdir): 91 for root, dirs, files in os.walk(logdir):
91 for name in files: 92 for name in files:
92 if not name.endswith(".log"): 93 if not name.endswith(".log"):