diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-12-07 09:38:55 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-12-07 09:38:55 -0500 |
commit | 9d43f129d4ad56dded752aa75c4dd2bb5af48b9e (patch) | |
tree | 7c0e9dd7ef78eb2b122f383fc9d0c10591e76194 /utils | |
parent | 2c30652840889cd2e1c5e15574e93aefdb720fcf (diff) | |
download | eib-9d43f129d4ad56dded752aa75c4dd2bb5af48b9e.tar.xz eib-9d43f129d4ad56dded752aa75c4dd2bb5af48b9e.zip |
Fix stuff.
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/create_xpi.py | 13 |
1 files changed, 2 insertions, 11 deletions
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 <exclusions> -n <name of zipped file> <directory> +Usage: python create_xpi.py -n <name of zipped file> <directory> """ 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() |