The fetch script downloaded through mktemp (0600) and the installer kept that mode, so the session couldn't read the root-owned font and reported it missing. The failure was also cached until the next session. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44688453d7
commit
7912a0b32b
3 files changed
+20
-6
No files matched your search
@@ -196,6 +196,13 @@ for d in ("config", "wit", "assets"):
|
||||
if os.path.lexists(dst):
|
||||
shutil.rmtree(dst) if os.path.isdir(dst) and not os.path.islink(dst) else os.remove(dst)
|
||||
shutil.copytree(os.path.join(root, d), dst)
|
||||
# copytree keeps the sources' modes; root installs these and every user's session reads them.
|
||||
for top, _, files in os.walk(dst):
|
||||
os.chmod(top, 0o755)
|
||||
for f in files:
|
||||
path = os.path.join(top, f)
|
||||
if not os.path.islink(path):
|
||||
os.chmod(path, 0o644)
|
||||
print("installed", dst)
|
||||
mods = os.path.join(root, "build/components")
|
||||
dst = os.path.join(share, "modules")
|
||||
|
||||
Reference in new issue
Block a user