diff --git a/pkgmgr/install_repos.py b/pkgmgr/install_repos.py index 9803f43..804880a 100644 --- a/pkgmgr/install_repos.py +++ b/pkgmgr/install_repos.py @@ -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: diff --git a/pkgmgr/status_repos.py b/pkgmgr/status_repos.py index 0039e9e..bc0c1c9 100644 --- a/pkgmgr/status_repos.py +++ b/pkgmgr/status_repos.py @@ -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)) diff --git a/pkgmgr/update_repos.py b/pkgmgr/update_repos.py index 413520b..d57b8cc 100644 --- a/pkgmgr/update_repos.py +++ b/pkgmgr/update_repos.py @@ -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) \ No newline at end of file