mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-27 15:22:29 +03:00
fbt: Fix tar uid overflow when packaging (#2689)
* fbt: Fix tar uid overflow when packaging * Fix trailing spaces
This commit is contained in:
parent
d9fc408d96
commit
5f1ac6e1b1
@ -271,7 +271,13 @@ class Main(App):
|
||||
self.note_dist_component(
|
||||
"update", "tgz", self.get_dist_path(bundle_tgz)
|
||||
)
|
||||
tar.add(bundle_dir, arcname=bundle_dir_name)
|
||||
|
||||
# Strip uid and gid in case of overflow
|
||||
def tar_filter(tarinfo):
|
||||
tarinfo.uid = tarinfo.gid = 0
|
||||
return tarinfo
|
||||
|
||||
tar.add(bundle_dir, arcname=bundle_dir_name, filter=tar_filter)
|
||||
return bundle_result
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user