Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_identity: only locate ipsw when needed #19

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ipsw_parser/build_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand Down
Loading