From 1da10120d9cf3de5dca8dbf50ba7c67ecd20626b Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Mon, 23 May 2011 17:23:13 -0700 Subject: [PATCH] Bug 600241 - Strip zips during optimization, r=taras --- browser/installer/Makefile.in | 3 +- config/optimizejars.py | 46 +++++++++++++++++---------- toolkit/mozapps/installer/packager.mk | 3 +- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/browser/installer/Makefile.in b/browser/installer/Makefile.in index 47138c44ba55..6cfb170a85ac 100644 --- a/browser/installer/Makefile.in +++ b/browser/installer/Makefile.in @@ -118,8 +118,7 @@ GENERATE_CACHE = \ rm -rf jsloader && \ $(UNZIP) startupCache.zip && \ rm startupCache.zip && \ - find jsloader | xargs touch -t 201001010000 && \ - $(ZIP) -r9mX omni.jar jsloader + $(ZIP) -r9m omni.jar jsloader endif include $(topsrcdir)/toolkit/mozapps/installer/packager.mk diff --git a/config/optimizejars.py b/config/optimizejars.py index 234d82bf0392..42fbfdee49dd 100644 --- a/config/optimizejars.py +++ b/config/optimizejars.py @@ -201,10 +201,15 @@ def optimizejar(jar, outjar, inlog = None): readahead = struct.unpack(" binary.manifest ; \ sed -e 's/^binary-component/\#binary-component/' components/components.manifest > components.manifest && \ mv components.manifest components && \ - find . | xargs touch -t 201001010000 && \ - zip -r9mX omni.jar $(OMNIJAR_FILES) -x $(NON_OMNIJAR_FILES) && \ + zip -r9m omni.jar $(OMNIJAR_FILES) -x $(NON_OMNIJAR_FILES) && \ $(GENERATE_CACHE) && \ $(OPTIMIZE_JARS_CMD) --optimize $(JARLOG_DIR) ./ ./ && \ mv binary.manifest components && \