Bug 1835431 - Handle xar files with a Content (.xip) rather than a Payload (.pkg). r=gsvelto

Differential Revision: https://phabricator.services.mozilla.com/D179282
This commit is contained in:
Mike Hommey 2023-05-31 22:24:34 +00:00
parent c6281d6814
commit c961698da3

View File

@ -32,7 +32,7 @@ def unpack_sdk(url, sha256, extract_prefix, out_dir="."):
pkg.seek(0, os.SEEK_SET)
for name, content in unxar(pkg):
if name == "Payload":
if name in ("Payload", "Content"):
extract_payload(content, extract_prefix, out_dir)