(cfg: Dict, distro: str, pid: str, installed: bool)
| 1165 | return fam_map.get(action) |
| 1166 | |
| 1167 | def 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 | |
| 1176 | def list_installed_programs(cfg: Dict, distro: str) -> List[str]: |
| 1177 | ensure_system_entry(cfg, distro) |
no test coverage detected