From 75691c0ed598536104debb5e7d013d150e073444 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 9 Apr 2025 15:46:52 +0200 Subject: [PATCH] fixes in write_when_new - create files with g/o read - fix superfluos remove of tmpfile --- install.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.py b/install.py index 7eca789..2910179 100755 --- a/install.py +++ b/install.py @@ -248,8 +248,6 @@ def pip(): os.rename(tmpname, filename) else: os.remove(tmpname) - else: - os.remove(tmpname) else: print(pipcmd) # unix_cmd(pipcmd, doit, stdout=None) @@ -290,6 +288,7 @@ def write_when_new(filename, content, as_root=False, ignore_reduction=False): fil.write(content) fil.flush() unix_cmd('cp', fil.name, filename, sudo=as_root) + unix_cmd('chmod 0644', filename, sudo=as_root) else: unix_cmd('rm', '-f', filename, sudo=as_root) elif more_info: