[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.
This commit is contained in:
Matt Hamilton 2016-10-27 23:01:37 -07:00
parent 1f0ed84938
commit 1801faf39c
1 changed files with 2 additions and 2 deletions

View File

@ -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
}