Execute yay allways as aur_builder
This commit is contained in:
@@ -71,7 +71,7 @@ def install_repos(
|
||||
if "yay" in requirements:
|
||||
yay_packages = requirements["yay"]
|
||||
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)
|
||||
# Install pkgmgr packages if defined.
|
||||
if "pkgmgr" in requirements:
|
||||
|
||||
@@ -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 --noconfirm", preview=preview)
|
||||
run_command("sudo -u aur_builder yay -Qu --noconfirm", preview=preview)
|
||||
if list_only:
|
||||
for repo in selected_repos:
|
||||
print(get_repo_identifier(repo, all_repos))
|
||||
|
||||
@@ -51,5 +51,5 @@ def update_repos(
|
||||
|
||||
if system_update:
|
||||
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)
|
||||
Reference in New Issue
Block a user