summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-04-17 19:19:34 +0200
committerMoonchild <moonchild@palemoon.org>2022-04-17 19:21:40 +0200
commitd2a4597cfc490de13ffe49bb194ee7d3097faccf (patch)
tree66e250292f0f46204bfb1d9f0ac9236252c3cf17 /python
parent43165d9edb2f9ac5a65ff9507b462fc948a665ba (diff)
downloaduxp-d2a4597cfc490de13ffe49bb194ee7d3097faccf.tar.gz
Issue #1859 - Part 6: Update mach mar to accept --bz2 for old style MAR
So we can build bzip2 MARs for selectively updating older versions of the applications that don't understand xz.
Diffstat (limited to 'python')
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index a2983b48c2..4f58a2a33d 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1140,8 +1140,13 @@ class Mar(MachCommandBase):
@Command('mar', category='post-build',
description='Create the mar file for the built product for distribution.')
- def mar(self):
- return self._run_make(directory="./tools/update-packaging/", target='', ensure_exit_code=False)
+ @CommandArgument('--bz2', action='store_true',
+ help='Compress the mar package with old-style bz2 instead of xz')
+ def mar(self, bz2):
+ if bz2:
+ return self._run_make(directory="./tools/update-packaging/", target='mar-package-bz2', ensure_exit_code=False)
+ else:
+ return self._run_make(directory="./tools/update-packaging/", target='mar-package', ensure_exit_code=False)
@CommandProvider
class Install(MachCommandBase):