From 1801faf39c0eb0eede6062bd516aa614c7a87c05 Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 27 Oct 2016 23:01:37 -0700 Subject: [PATCH] [pacman] keep old packages for `auru` The choice to remove these packages should be up to the administrator. Having an old -git package around after experiencing an upstream issue is always handy. --- modules/pacman/helper_aur.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pacman/helper_aur.zsh b/modules/pacman/helper_aur.zsh index d051e83..3d88883 100644 --- a/modules/pacman/helper_aur.zsh +++ b/modules/pacman/helper_aur.zsh @@ -4,7 +4,7 @@ # download and build AUR package aurb() { - git clone https://aur.archlinux.org/${1}.git && cd ${1} && makepkg -sci + git clone https://aur.archlinux.org/${1}.git && cd ${1} && makepkg --clean --install --syncdeps } # only download aur package; do not build @@ -16,5 +16,5 @@ aurd() { #NOTE: this is will remove any unstashed/uncommitted changes. # due to how makepkg will update the PKGBUILD, a git pull alone will not suffice. auru() { - git reset HEAD --hard && git pull && rm -f *.pkg.tar.xz || true && makepkg -sci + git reset HEAD --hard && git pull && makepkg --clean --force --install --syncdeps --cleanbuild }