mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00

This patch fixes a bug in the FasterMake backend and adds a new test_fastermake.py file to add a test for the behavior. The FasterMake backend didn't handle wildcards in file names present in FINAL_TARGET_FILES properly. For an entry like: FINAL_TARGET_FILES.foo += ['*.xyz'] It would wind up trying to install the files to `dist/bin/foo/*.xyz/`, a path with a literal asterisk in it. The code seems to have been written assuming that wildcards would only be present in directory components of the path. This change fixes this specific case, although it's possible that it still doesn't handle all permutations of wildcards properly. MozReview-Commit-ID: rk2tSyDyIu --HG-- extra : rebase_source : c8f0cfdaa6b957df70bb528af9b0b816b387840e
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Vendored python modules (use third_party/python instead) * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 https://bugzilla.mozilla.org/show_bug.cgi?id=1346025