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.
This commit is contained in:
Moonchild 2022-04-17 19:19:34 +02:00 committed by roytam1
commit 6c1c2339bc
3 changed files with 29 additions and 3 deletions

View file

@ -1137,8 +1137,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):