Package: calibre / 6.13.0+repack-2+deb12u4

0022-Sort-directory-and-file-names-to-reproducible-build.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Sat, 1 Oct 2022 15:29:06 +0900
Subject: Sort directory and file names to reproducible build

Forwarded: not-needed
---
 src/calibre/utils/rcc/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/calibre/utils/rcc/__init__.py b/src/calibre/utils/rcc/__init__.py
index e3253ea..c46b4a7 100644
--- a/src/calibre/utils/rcc/__init__.py
+++ b/src/calibre/utils/rcc/__init__.py
@@ -116,6 +116,8 @@ def compile_icon_dir_as_themes(
             file('/'.join(dest))
 
         for dirpath, dirnames, filenames in os.walk(path_to_dir):
+            dirnames.sort()
+            filenames.sort()
             if 'textures' in dirnames:
                 dirnames.remove('textures')
             if os.path.basename(tdir) in dirnames: