Newer
Older
#!/usr/bin/env python3
from subprocess import run, DEVNULL, PIPE
"bsd-mailx", # for "mail" command used in tester
"python3-defusedxml",
"python3-openssl",
"python3-psutil",
"python3-requests",
"python3-spf",
]
def main():
for pkg in PACKAGES:
if run(
["/usr/bin/dpkg", "-s", pkg],
shell=False,
stdout=DEVNULL,
stderr=DEVNULL,
stdin=PIPE,
).returncode != 0:
result = run(
["/usr/bin/apt", "install", "-y", pkg],