[Pkg-mozext-commits] [mozilla-devscripts] 01/01: xpi-pack: do not save extra attributes when making jar

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Oct 3 20:28:12 UTC 2014


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

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

commit bc9f279909ac9c7e47f2b4599630565fe03230ec
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Oct 3 22:23:41 2014 +0200

    xpi-pack: do not save extra attributes when making jar
    
    There's no need to save extra attributes (uid/gid and file times) when
    creating the jar files, and it hurts build reproducibility.
---
 xpi-pack | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xpi-pack b/xpi-pack
index 688839c..88c0dd4 100755
--- a/xpi-pack
+++ b/xpi-pack
@@ -71,13 +71,13 @@ for JAR_DIR in `find . -type d -name '*.jar\!'` ; do
 	ABS_CUR_DIR=`pwd`;
 	cd $ABS_JAR_PATH;
 	echo "Packing $JAR_FILE";
-	zip -q -r $ABS_JAR_FILE .;
+	zip -q -X -r $ABS_JAR_FILE .;
 	cd $ABS_CUR_DIR;
 	PACK_JAR_PATHS="$ABS_JAR_FILE $PACK_JAR_PATHS";
 	rm -rf $ABS_JAR_PATH;
 done;
 echo "Packing $XPIFILE";
-zip -q -r $START_DIR/$XPIFILE * -x debian/\* temp-*/\*;
+zip -q -X -r $START_DIR/$XPIFILE * -x debian/\* temp-*/\*;
 [ -f $START_DIR/$XPIFILE ] && XPIDIR=`dirname $START_DIR/$XPIFILE`
 ABS_XPIDIR=`cd $XPIDIR; pwd`;
 echo "Packed XPI file. It is located in $ABS_XPIDIR";

-- 
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