eae6c38ea8a15ebf32878626cd7673411e18f450

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3010 from celsomiranda/patch-1

Add support for local aur databases

Diff

 1diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
 2index bffe9657af9e762adf41ca0fd651a27f410dc298..059884c271b7ea0fcc1784c03e17b64e9b3aff38 100644
 3--- a/plugins/archlinux/archlinux.plugin.zsh
 4+++ b/plugins/archlinux/archlinux.plugin.zsh
 5@@ -21,10 +21,14 @@ if [[ -x `which yaourt` ]]; then
 6   alias yalst='yaourt -Qe'         # List installed packages, even those installed from AUR (they're tagged as "local")
 7   alias yaorph='yaourt -Qtd'       # Remove orphans using yaourt
 8   # Additional yaourt alias examples
 9-  if [[ -x `which abs` ]]; then
10+  if [[ -x `which abs` && -x `which aur` ]]; then
11+    alias yaupd='yaourt -Sy && sudo abs && sudo aur'  # Update and refresh the local package, ABS and AUR databases against repositories
12+  elif [[ -x `which abs` ]]; then
13     alias yaupd='yaourt -Sy && sudo abs'   # Update and refresh the local package and ABS databases against repositories
14+  elif [[ -x `which aur` ]]; then
15+    alias yaupd='yaourt -Sy && sudo aur'   # Update and refresh the local package and AUR databases against repositories
16   else
17-    alias yaupd='yaourt -Sy'               # Update and refresh the local package and ABS databases against repositories
18+    alias yaupd='yaourt -Sy'               # Update and refresh the local package database against repositories
19   fi
20   alias yainsd='yaourt -S --asdeps'        # Install given package(s) as dependencies of another package
21   alias yamir='yaourt -Syy'                # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
22@@ -45,10 +49,14 @@ alias pacreps='pacman -Ss'             # Search for package(s) in the repositori
23 alias pacloc='pacman -Qi'              # Display information about a given package in the local database
24 alias paclocs='pacman -Qs'             # Search for package(s) in the local database
25 # Additional pacman alias examples
26-if [[ -x `which abs` ]]; then
27-  alias pacupd='sudo pacman -Sy && sudo abs'     # Update and refresh the local package and ABS databases against repositories
28+if [[ -x `which abs` && -x `which aur` ]]; then
29+  alias pacupd='sudo pacman -Sy && sudo abs && sudo aur'  # Update and refresh the local package, ABS and AUR databases against repositories
30+elif [[ -x `which abs` ]]; then
31+  alias pacupd='sudo pacman -Sy && sudo abs'              # Update and refresh the local package and ABS databases against repositories
32+elif [[ -x `which aur` ]]; then
33+  alias pacupd='sudo pacman -Sy && sudo aur'              # Update and refresh the local package and AUR databases against repositories
34 else
35-  alias pacupd='sudo pacman -Sy'     # Update and refresh the local package and ABS databases against repositories
36+  alias pacupd='sudo pacman -Sy'     # Update and refresh the local package database against repositories
37 fi
38 alias pacinsd='sudo pacman -S --asdeps'        # Install given package(s) as dependencies of another package
39 alias pacmir='sudo pacman -Syy'                # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist