Files
archmgr/commands/prepare.py
T
2026-04-15 15:59:36 +02:00

14 lines
399 B
Python

import subprocess
from commands.util import pacman
def setup():
print("==> Installing required packages")
if not pacman.install_package_list(["git"]):
print("Git installation failed")
return
subprocess.run(["git", "clone", "https://aur.archlinux.org/yay.git"], cwd="/tmp")
subprocess.run(["makepkg", "-si"], cwd="/tmp/yay")
print("==> Installation completed")