Provide a management to iterate through add-ons

RESOLVED FIXED

Status

RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: andy+bugzilla, Assigned: magopian)

Tracking

Details

(Reporter)

Description

3 years ago
This will need fleshing out, but we'll need to iterate through the add-on ids provided in bug 1224443. For each add-on grab the files, run the repack script as created in bug 1224444 and then output a new file.

It would be awesome if this had an "email flag", that sent the add-on to the add-on author. With some text explaining the issue.

But first let's get the script and run it on a bunch of add-ons and have a look at the result before we email everyone.
(Reporter)

Updated

3 years ago
Blocks: 1213102

Comment 1

3 years ago
Commits pushed to master at https://github.com/mozilla/olympia

https://github.com/mozilla/olympia/commit/12cbafc79ccf5c6798947f1150e873af2ff1066d
Iterate through the add-ons and repack them after fixing the 'let scope bustage' (bug 1224686)

https://github.com/mozilla/olympia/commit/9b0f11f3e59635343156348961f0d949522a8bb1
Merge pull request #941 from magopian/1224686-repack-addons-helpers

Iterate through the add-ons and repack them after fixing the 'let scope bustage' (bug 1224686)
(Assignee)

Comment 2

3 years ago
PR: https://github.com/mozilla/olympia/pull/941
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
(Assignee)

Comment 3

3 years ago
The management command to run (it takes add-on primary keys from the database):

manage.py fix_let_scope_bustage <addon pk> <addon pk> <addon pk>...

It should replace all the "let" and "const" in the global scope of javascript files by "var". It then repackages them, bumps the version number, and re-sign them (only if they were signed).
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.