| OLD | NEW | 
|---|
| 1 # This Source Code Form is subject to the terms of the Mozilla Public | 1 # This Source Code Form is subject to the terms of the Mozilla Public | 
| 2 # License, v. 2.0. If a copy of the MPL was not distributed with this | 2 # License, v. 2.0. If a copy of the MPL was not distributed with this | 
| 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | 
| 4 | 4 | 
| 5 import errno | 5 import errno | 
| 6 import io | 6 import io | 
| 7 import json | 7 import json | 
| 8 import os | 8 import os | 
| 9 import re | 9 import re | 
| 10 from StringIO import StringIO | 10 from StringIO import StringIO | 
| 11 import struct | 11 import struct | 
| 12 import sys | 12 import sys | 
| 13 import collections | 13 import collections | 
| 14 | 14 | 
| 15 import packager | 15 from packager import (readMetadata, getDefaultFileName, getBuildVersion, | 
| 16 from packager import readMetadata, getMetadataPath, getDefaultFileName, getBuild
     Version, getTemplate, Files | 16                       getTemplate, Files) | 
| 17 | 17 | 
| 18 defaultLocale = 'en_US' | 18 defaultLocale = 'en_US' | 
| 19 | 19 | 
| 20 | 20 | 
| 21 def getIgnoredFiles(params): | 21 def getIgnoredFiles(params): | 
| 22     return {'store.description'} | 22     return {'store.description'} | 
| 23 | 23 | 
| 24 | 24 | 
| 25 def getPackageFiles(params): | 25 def getPackageFiles(params): | 
| 26     result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui', 'ext')) | 26     result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui', 'ext')) | 
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 384         files['qunit/index.html'] = createScriptPage(params, 'testIndex.html.tmp
     l', | 384         files['qunit/index.html'] = createScriptPage(params, 'testIndex.html.tmp
     l', | 
| 385                                                      ('general', 'testScripts')) | 385                                                      ('general', 'testScripts')) | 
| 386 | 386 | 
| 387     zipdata = files.zipToString() | 387     zipdata = files.zipToString() | 
| 388     signature = None | 388     signature = None | 
| 389     pubkey = None | 389     pubkey = None | 
| 390     if keyFile != None: | 390     if keyFile != None: | 
| 391         signature = signBinary(zipdata, keyFile) | 391         signature = signBinary(zipdata, keyFile) | 
| 392         pubkey = getPublicKey(keyFile) | 392         pubkey = getPublicKey(keyFile) | 
| 393     writePackage(outFile, pubkey, signature, zipdata) | 393     writePackage(outFile, pubkey, signature, zipdata) | 
| OLD | NEW | 
|---|