summaryrefslogtreecommitdiff
path: root/install-xpi
diff options
context:
space:
mode:
Diffstat (limited to 'install-xpi')
-rwxr-xr-xinstall-xpi3
1 files changed, 3 insertions, 0 deletions
diff --git a/install-xpi b/install-xpi
index 3601038..4e7c674 100755
--- a/install-xpi
+++ b/install-xpi
@@ -156,6 +156,9 @@ def install_xpi(script_name, package, xpi_file, exclude, install_dir, links,
# create directory and extract xpi file
if not os.path.isdir(copy_dir):
os.makedirs(copy_dir)
+ # With unzip, the mtime of created files will depend on the timezone,
+ # which prevents reproducible builds. Let's make it UTC before unzipping.
+ os.environ['TZ'] = 'UTC'
command = ["unzip", "-o", "-d", copy_dir, xpi_file]
if len(exclude) > 0:
command.append("-x")