summaryrefslogtreecommitdiff
path: root/xpi-unpack
diff options
context:
space:
mode:
authorJérémy Bobbio <lunar@debian.org>2015-06-01 18:09:47 +0200
committerJérémy Bobbio <lunar@debian.org>2015-06-01 18:09:47 +0200
commit3ac63335cda3292eb811af54e7d728a239540ef7 (patch)
treea1ef461e0fd8edf7a0b36a84f85c3b4d86899cbd /xpi-unpack
parent1419d0226868500f869a42940382970921c56794 (diff)
Use UTC as timezone when calling zip or unzip
Zip standard specify that files are stored with localtime. This unfortunately make the builds vary needlessly when run on different timezone.
Diffstat (limited to 'xpi-unpack')
-rwxr-xr-xxpi-unpack4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpi-unpack b/xpi-unpack
index 6468b15..b4ebf06 100755
--- a/xpi-unpack
+++ b/xpi-unpack
@@ -64,11 +64,11 @@ fi;
mkdir $OUTDIR;
echo "Unpacking $XPIFILE";
-unzip -q $XPIFILE -d $OUTDIR;
+TZ=UTC unzip -q $XPIFILE -d $OUTDIR;
cd $OUTDIR;
for JAR_PATH in `find . -name '*.jar'` ; do
echo "Unpacking $JAR_PATH";
- unzip -q $JAR_PATH -d $JAR_PATH!;
+ TZ=UTC unzip -q $JAR_PATH -d $JAR_PATH!;
rm -f $JAR_PATH;
done;
cd ..;