Bug 855223 - Packaging fails when using a symlink format with: TypeError: fatal() takes exactly 2 arguments (3 given); r=glandium
authorPanos Astithas <past@mozilla.com>
Wed, 27 Mar 2013 13:10:22 +0200
changeset 126239 61a41995739047dbf79e8b59d3cd41d798d6765a
parent 126238 0713793b80b1e119f75fa0c231dc97010ae3267d
child 126240 c88ccb89284f6f59ac143a9a621ef96b798fa14f
push id1455
push userpastithas@mozilla.com
push dateWed, 27 Mar 2013 11:57:44 +0000
treeherderfx-team@983d8a7b4cea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs855223
milestone22.0a1
Bug 855223 - Packaging fails when using a symlink format with: TypeError: fatal() takes exactly 2 arguments (3 given); r=glandium
toolkit/mozapps/installer/packager.py
--- a/toolkit/mozapps/installer/packager.py
+++ b/toolkit/mozapps/installer/packager.py
@@ -266,17 +266,17 @@ def main():
     elif args.format == 'jar':
         formatter = JarFormatter(copier, optimize=args.optimizejars)
     elif args.format == 'omni':
         formatter = OmniJarFormatter(copier,
                                      buildconfig.substs['OMNIJAR_NAME'],
                                      optimize=args.optimizejars,
                                      non_resources=args.non_resource)
     else:
-        errors.fatal('Unknown format: %s', format)
+        errors.fatal('Unknown format: %s' % args.format)
 
     # Adjust defines according to the requested format.
     if isinstance(formatter, OmniJarFormatter):
         defines['MOZ_OMNIJAR'] = 1
     elif 'MOZ_OMNIJAR' in defines:
         del defines['MOZ_OMNIJAR']
 
     binpath = ''