Skip to content

Commit 86f165e

Browse files
Use tax.xz for Firefox package starting in version 135 in pinned browsers (#15115)
1 parent a62ef3d commit 86f165e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/pinned_browsers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,12 @@ def firefox_version_data():
416416

417417

418418
def firefox_linux(version):
419-
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.bz2" % (version, version)
419+
if int(version.split(".")[0]) < 135:
420+
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.bz2" % (
421+
version, version)
422+
else:
423+
return "https://ftp.mozilla.org/pub/firefox/releases/%s/linux-x86_64/en-US/firefox-%s.tar.xz" % (
424+
version, version)
420425

421426

422427
def firefox_mac(version):

0 commit comments

Comments
 (0)