Execute yay allways as aur_builder

This commit is contained in:
Kevin Veen-Birkenbach
2025-07-18 13:39:46 +02:00
parent e836156663
commit 1e27fed3f9
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ def install_repos(
if "yay" in requirements: if "yay" in requirements:
yay_packages = requirements["yay"] yay_packages = requirements["yay"]
if yay_packages: if yay_packages:
cmd = "yay -S --noconfirm " + " ".join(yay_packages) cmd = "sudo -u aur_builder yay -S --noconfirm " + " ".join(yay_packages)
run_command(cmd, preview=preview) run_command(cmd, preview=preview)
# Install pkgmgr packages if defined. # Install pkgmgr packages if defined.
if "pkgmgr" in requirements: 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): def status_repos(selected_repos, repositories_base_dir, all_repos, extra_args, list_only=False, system_status=False, preview=False):
if system_status: if system_status:
print("System status:") print("System status:")
run_command("yay -Qu --noconfirm", preview=preview) run_command("sudo -u aur_builder yay -Qu --noconfirm", preview=preview)
if list_only: if list_only:
for repo in selected_repos: for repo in selected_repos:
print(get_repo_identifier(repo, all_repos)) print(get_repo_identifier(repo, all_repos))

View File

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