Added --noconfirm to yay and pacman for autoupdates

This commit is contained in:
Kevin Veen-Birkenbach
2025-07-18 13:27:30 +02:00
parent 568756d23e
commit b7fb47e217
3 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ def install_repos(
if "yay" in requirements:
yay_packages = requirements["yay"]
if yay_packages:
cmd = "yay -S " + " ".join(yay_packages)
cmd = "yay -S --noconfirm" + " ".join(yay_packages)
run_command(cmd, preview=preview)
# Install pkgmgr packages if defined.
if "pkgmgr" in requirements:

View File

@@ -5,7 +5,7 @@ from .run_command import run_command
def status_repos(selected_repos, repositories_base_dir, all_repos, extra_args, list_only=False, system_status=False, preview=False):
if system_status:
print("System status:")
run_command("yay -Qu", preview=preview)
run_command("yay -Qu --noconfirm", preview=preview)
if list_only:
for repo in selected_repos:
print(get_repo_identifier(repo, all_repos))

View File

@@ -51,5 +51,5 @@ def update_repos(
if system_update:
from pkgmgr.run_command import run_command
run_command("yay -Syu", preview=preview)
run_command("sudo pacman -Syyu", preview=preview)
run_command("yay -Syu --noconfirm", preview=preview)
run_command("sudo pacman -Syyu --noconfirm", preview=preview)