Closed Bug 932133 Opened 11 years ago Closed 11 years ago

Error out when entries in *SOURCES have an unknown file type

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla28

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 2 obsolete files)

As noted in bug 929905 comment 12.
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Was using get instead of setdefault. Oops.
Attachment #823751 - Flags: review?(gps)
Was using get instead of setdefault. Oops.
Attachment #823752 - Flags: review?(gps)
Attachment #823723 - Attachment is obsolete: true
Attachment #823723 - Flags: review?(gps)
Attachment #823751 - Attachment is obsolete: true
Attachment #823751 - Flags: review?(gps)
Blocks: 932170
Comment on attachment 823752 [details] [diff] [review]
Error out when entries in *SOURCES have an unknown file type

Review of attachment 823752 [details] [diff] [review]:
-----------------------------------------------------------------

A test would be nice. But I'm in a generous mood this morning.

::: python/mozbuild/mozbuild/frontend/emitter.py
@@ +203,2 @@
>          )
> +        for var, map in varmap.items():

Nit: Please don't override the built-in "var" and "map" symbols.

@@ +203,4 @@
>          )
> +        for var, map in varmap.items():
> +            if sandbox[var]:
> +                for f in sandbox[var]:

You can probably just use the for loop since sandbox[var] should return an empty list.
Attachment #823752 - Flags: review?(gps) → review+
https://hg.mozilla.org/mozilla-central/rev/b3aa84e5df45
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: