Packaging fails when using a symlink format with: TypeError: fatal() takes exactly 2 arguments (3 given)

RESOLVED FIXED in mozilla22

Status

RESOLVED FIXED
6 years ago
7 months ago

People

(Reporter: past, Assigned: past)

Tracking

Trunk
mozilla22
x86
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 730035 [details] [diff] [review]
Patch v1

Symlink format causes an incorrect error to appear when running 'mach package':

past@deck:fx-team$ mach package
 0:01.31 /opt/local/bin/gmake -C . -j8 -s -w package
 0:01.33 gmake: Entering directory `/Users/past/src/fx-team/obj-ff-dbg'
 0:01.53 gmake[1]: Entering directory `/Users/past/src/fx-team/obj-ff-dbg/browser/installer'
 0:01.72 gmake[2]: Entering directory `/Users/past/src/fx-team/obj-ff-dbg/browser/installer'
 0:01.90 gmake[3]: Entering directory `/Users/past/src/fx-team/obj-ff-dbg/browser/installer'
 0:06.23 Traceback (most recent call last):
 0:06.24 File "/Users/past/src/fx-team/toolkit/mozapps/installer/packager.py", line 373, in <module>
 0:06.24 main()
 0:06.24 File "/Users/past/src/fx-team/toolkit/mozapps/installer/packager.py", line 274, in main
 0:06.24 errors.fatal('Unknown format: %s', format)
 0:06.24 TypeError: fatal() takes exactly 2 arguments (3 given)
 0:06.24 gmake[3]: *** [stage-package] Error 1
 0:06.24 gmake[3]: Leaving directory `/Users/past/src/fx-team/obj-ff-dbg/browser/installer'
 0:06.24 gmake[2]: *** [make-package] Error 2
 0:06.24 gmake[2]: Leaving directory `/Users/past/src/fx-team/obj-ff-dbg/browser/installer'
 0:06.24 gmake[1]: *** [default] Error 2
 0:06.24 gmake[1]: Leaving directory `/Users/past/src/fx-team/obj-ff-dbg/browser/installer'
 0:06.24 gmake: *** [package] Error 2
 0:06.24 gmake: Leaving directory `/Users/past/src/fx-team/obj-ff-dbg'


With this patch, the error I get is the more descriptive:

mozpack.errors.ErrorMessage: Error: Unknown format: symlink
Attachment #730035 - Flags: review?(mh+mozilla)
Attachment #730035 - Flags: review?(mh+mozilla) → review+
Blocks: 780561
https://hg.mozilla.org/mozilla-central/rev/61a419957390
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla22

Updated

7 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.