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

Function mark_program_installed

Scripts/Developer Base/Mobile Desktop.py:1167–1174  ·  view source on GitHub ↗
(cfg: Dict, distro: str, pid: str, installed: bool)

Source from the content-addressed store, hash-verified

1165 return fam_map.get(action)
1166
1167def mark_program_installed(cfg: Dict, distro: str, pid: str, installed: bool) -> None:
1168 ensure_system_entry(cfg, distro)
1169 lst = cfg["systems"][distro].setdefault("installed_programs", [])
1170 if installed and pid not in lst:
1171 lst.append(pid)
1172 if (not installed) and pid in lst:
1173 lst.remove(pid)
1174 save_config(cfg)
1175
1176def list_installed_programs(cfg: Dict, distro: str) -> List[str]:
1177 ensure_system_entry(cfg, distro)

Callers 3

install_custom_packageFunction · 0.70
install_programFunction · 0.70
remove_programFunction · 0.70

Calls 2

ensure_system_entryFunction · 0.70
save_configFunction · 0.70

Tested by

no test coverage detected