mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
FBT: Deterministic tarfile perms --nobuild
This commit is contained in:
@@ -16,6 +16,10 @@ def tar_sanitizer_filter(tarinfo: tarfile.TarInfo):
|
||||
tarinfo.gid = tarinfo.uid = 0
|
||||
tarinfo.mtime = 0
|
||||
tarinfo.uname = tarinfo.gname = "furippa"
|
||||
if tarinfo.type == tarfile.DIRTYPE:
|
||||
tarinfo.mode = 0o40755 # drwxr-xr-x
|
||||
else:
|
||||
tarinfo.mode = 0o644 # ?rw-r--r--
|
||||
return tarinfo
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user