File: 0014-Sort-directory-and-file-names-to-reproducible-build.patch

package info (click to toggle)
calibre 8.15.0%2Bds%2B~0.10.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 445,088 kB
  • sloc: python: 456,101; cpp: 151,500; ansic: 85,816; javascript: 57,787; xml: 1,247; sh: 957; sql: 735; objc: 330; makefile: 78; sed: 3
file content (22 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (4)
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 b8ae07d..b1c26ff 100644
--- a/src/calibre/utils/rcc/__init__.py
+++ b/src/calibre/utils/rcc/__init__.py
@@ -117,6 +117,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: