From 9d43f129d4ad56dded752aa75c4dd2bb5af48b9e Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 7 Dec 2014 09:38:55 -0500 Subject: Fix stuff. --- utils/create_xpi.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'utils') diff --git a/utils/create_xpi.py b/utils/create_xpi.py index e14cd49..f2ad8a6 100755 --- a/utils/create_xpi.py +++ b/utils/create_xpi.py @@ -4,7 +4,7 @@ # Author: Yan Zhu, yan@mit.edu """ -Usage: python create_xpi.py -x -n +Usage: python create_xpi.py -n """ import argparse @@ -14,9 +14,6 @@ import glob parser = argparse.ArgumentParser( description="Deterministic XPI file creator.") -parser.add_argument("-x", type=str, nargs="?", - dest="exclusions", metavar="File with file pattern exclusions", - default=".build_exclusions", help="Excluded file patterns.") parser.add_argument("-n", type=str, dest="xpiname", help="Name of target XPI file.") parser.add_argument("directory", type=str, @@ -24,15 +21,9 @@ parser.add_argument("directory", type=str, args = parser.parse_args() -exclusions = [] -with open(args.exclusions) as f: - for line in f: - exclusions.extend(glob.glob(line.strip())) -exclusions = map(lambda x: './'+x, exclusions) - compress = zipfile.ZIP_DEFLATED xpiFile = zipfile.ZipFile(args.xpiname, mode='w', compression=compress) -xpiFile.write_from_directory(args.directory, exclusions, compress_type=compress) +xpiFile.write_from_directory(args.directory, [], compress_type=compress) xpiFile.close() -- cgit v1.2.3-70-g09d2