diff --git a/ipsw_parser/build_identity.py b/ipsw_parser/build_identity.py index 01155b0..702803f 100644 --- a/ipsw_parser/build_identity.py +++ b/ipsw_parser/build_identity.py @@ -11,10 +11,10 @@ from ipsw_parser.component import Component logger = logging.getLogger(__name__) -ipsw = local['ipsw'] def _extract_dmg(buf: bytes, output: Path) -> None: + ipsw = local['ipsw'] hdiutil = local['hdiutil'] # darwin system statistically have problems cleaning up after detaching the mountpoint with TemporaryDirectory() as temp_dir: @@ -115,6 +115,7 @@ def populate_tss_request_parameters(self, parameters: Mapping, additional_keys: parameters['RequiresUIDMode'] = requires_uid_mode def extract(self, output: Path) -> None: + ipsw = local['ipsw'] logger.info(f'extracting into: {output}') build_identity = self.build_manifest.build_identities[0]