MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / ensure_pkg_command

Function ensure_pkg_command

Scripts/Settings.py:1175–1183  ·  view source on GitHub ↗

Install a Termux package only when the binary is missing.

(binary_name, package_name=None)

Source from the content-addressed store, hash-verified

1173 update_changed = bool(force_update_repo(existing_dedsec_path, repo_url))
1174 dedsec_size = get_dedsec_size(existing_dedsec_path)
1175 print(f"[+] {_('Update applied. DedSec Project Size')}: {dedsec_size}")
1176 else:
1177 print(_("No available update found."))
1178 else:
1179 existing_dedsec_path = clone_repo(repo_url)
1180 update_changed = True
1181 dedsec_size = get_dedsec_size(existing_dedsec_path)
1182 print(f"[+] {_('Cloned new DedSec repository. DedSec Project Size')}: {dedsec_size}")
1183 except Exception as exc:
1184 update_error = exc
1185 raise
1186 finally:

Calls 2

printFunction · 0.85
run_processFunction · 0.70

Tested by

no test coverage detected