]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Merge pull request #478 from diabonas/reproducible-mo-file
authorMicah Lee <micah@micahflee.com>
Fri, 18 Jun 2021 21:51:21 +0000 (17:51 -0400)
committerGitHub <noreply@github.com>
Fri, 18 Jun 2021 21:51:21 +0000 (17:51 -0400)
Make torbrowser-launcher.mo ordering reproducible

setup.py

index e42d83b419fb88c48efa41659f51da2756f25c00..67e126e20a8b3c9e66b700d02f66f396dfffaeec 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,9 @@ def create_mo_files():
         return []
     domain = "torbrowser-launcher"
     mo_files = []
-    po_files = [f for f in next(os.walk(po_dir))[2] if os.path.splitext(f)[1] == ".po"]
+    po_files = sorted(
+        [f for f in next(os.walk(po_dir))[2] if os.path.splitext(f)[1] == ".po"]
+    )
     for po_file in po_files:
         filename, extension = os.path.splitext(po_file)
         mo_file = domain + ".mo"