Skip to content
Snippets Groups Projects
Commit be7d259a authored by Rail Aliiev's avatar Rail Aliiev
Browse files

Bug 1395697 - Use BZ2 MAR compression for versions less than 56.0 r=sfraser

MozReview-Commit-ID: LutFJRayTOX

--HG--
extra : rebase_source : 17c71e4384d5f4106660214f04bf0e67df0ed719
parent a7712cd2
No related branches found
No related tags found
No related merge requests found
......@@ -248,9 +248,16 @@ def main():
verify_signature(dest, signing_certs)
complete_mars["%s_size" % mar_type] = os.path.getsize(dest)
complete_mars["%s_hash" % mar_type] = get_hash(dest)
if mar_type == 'to' and not is_lzma_compressed_mar(dest):
use_old_format = True
unpack(work_env, dest, unpack_dir)
if mar_type == 'from':
version = get_option(unpack_dir, filename="application.ini",
section="App", option="Version")
major = int(version.split(".")[0])
# The updater for versions less than 56.0 requires BZ2
# compressed MAR files
if major < 56:
use_old_format = True
log.info("Forcing BZ2 compression for %s", f)
log.info("AV-scanning %s ...", unpack_dir)
sh.clamscan("-r", unpack_dir, _timeout=600, _err_to_out=True)
log.info("Done.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment