[Pkg-mozext-commits] [mozilla-devscripts] 01/02: install-xpi: sort file list in preferences files

Benjamin Drung bdrung at moszumanska.debian.org
Tue Jan 12 22:10:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

bdrung pushed a commit to branch master
in repository mozilla-devscripts.

commit 99c024e33463137189b0f03de460551413cfebb0
Author: Benjamin Drung <bdrung at debian.org>
Date:   Tue Jan 12 23:03:50 2016 +0100

    install-xpi: sort file list in preferences files
    
    Members of the reproducible builds effort noticed that
    mozilla-devscripts embeds file lists in undeterministic readdir order
    into .js files.
    
    To make builds reproducible, sort the file list in preferences files.
    
    Closes: #808713
    Thanks: Reiner Herrmann <reiner at reiner-h.de>
---
 install-xpi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install-xpi b/install-xpi
index 4e7c674..aba8773 100755
--- a/install-xpi
+++ b/install-xpi
@@ -131,7 +131,7 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
               (script_name, xpi_file), file=sys.stderr)
         sys.exit(XPI_FILE_DOES_NOT_EXISTS)
     zfobj = zipfile.ZipFile(xpi_file)
-    xpi_content = zfobj.namelist()
+    xpi_content = sorted(zfobj.namelist())
 
     # determine installation directory
     if get_arch(package, debian_directory) == "all":

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/mozilla-devscripts.git



More information about the Pkg-mozext-commits mailing list