depot/nix/pkgs/flipperzero-firmware/0004-scripts-sconsdist-disable-strict_timestamps-allow-FS.patch

33 lines
1 KiB
Diff

From a6e68ed93bd47302d8e0ab914ad463a1d7b07703 Mon Sep 17 00:00:00 2001
From: Luke Granger-Brown <git@lukegb.com>
Date: Sat, 22 Oct 2022 19:50:27 +0100
Subject: [PATCH 4/4] scripts/sconsdist: disable strict_timestamps - allow FS
timestamps pre 1980
---
scripts/sconsdist.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/sconsdist.py b/scripts/sconsdist.py
index 23e194a94..5dd5db1ee 100644
--- a/scripts/sconsdist.py
+++ b/scripts/sconsdist.py
@@ -92,6 +92,7 @@ class Main(App):
self.get_dist_path(self.get_dist_file_name(foldertype, "zip")),
"w",
zipfile.ZIP_DEFLATED,
+ strict_timestamps=False,
) as _:
pass
@@ -178,6 +179,7 @@ class Main(App):
self.get_dist_path(self.get_dist_file_name("sdk", "zip")),
"w",
zipfile.ZIP_DEFLATED,
+ strict_timestamps=False,
) as zf:
for component_key in sdk_components_keys:
component_path = self._dist_components.get(component_key)
--
2.39.2