feat: ServicePackagesMixin, which packages a systemd service is (NetOrk/netork#1236) #50

Merged
christianmanivong merged 2 commits from feat/service-packages-1236 into main 2026-10-19 16:56:16 +00:00
Showing only changes of commit a21e365c4e - Show all commits
+2 -1
View File
@@ -82,7 +82,8 @@ def _report(output: str) -> Dict[str, List[str]]:
def _units(lines: List[str]) -> Dict[str, Set[str]]:
"""``systemctl show`` blocks -> ``{unit: its unit file and binary}``."""
units: Dict[str, Set[str]] = {}
unit, paths = "", set()
unit = ""
paths: Set[str] = set()
for line in [*lines, ""]:
key, _, value = line.partition("=")
if not line.strip():