Closed Bug 770702 Opened 12 years ago Closed 12 years ago

pymake native nsinstall should sys.exit and not return

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: rain1, Assigned: rain1)

References

Details

Attachments

(1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
Per IRC discussion, pymake eats up return values for native commands.
Attachment #638885 - Flags: review?(gps)
Comment on attachment 638885 [details] [diff] [review]
patch

I'm not a build peer, so this isn't an official r+.

The change is trivial, it appears. Just as long as nsinstall() isn't being called from "not pymake" this should be good.
Attachment #638885 - Flags: review?(gps) → review+
We could also fix pymake.
(In reply to Ted Mielczarek [:ted] from comment #2)
> We could also fix pymake.

We discussed this heavily on IRC.

Basically, what do you change it to? You can't accept everything because you need a way to convert that to a status code. Is None success or failure? What if you return an object?

I think we decided that a compromise of converting a returned int into a status code is acceptable. If it is anything else, we preserve the existing behavior of assuming success.
Accepting integer return values as status codes sounds pretty sensible. We could probably try to handle other return types, but that doesn't seem really worthwhile.
Comment on attachment 638885 [details] [diff] [review]
patch

We realized on IRC that this patch is wrong anyway.
Attachment #638885 - Attachment is obsolete: true
I think we're going to fix bug 772186 instead.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
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: