updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / aurcheck / pacman.patch
blob1bbc52f999d82bd983012f4945d3ca83e95cb2ea
1 --- aurcheck.old/src/aurcheck 1970-01-01 05:14:21.000000000 -0400
2 +++ aurcheck/src/aurcheck 2011-02-07 15:38:10.000000000 -0400
3 @@ -52,7 +52,7 @@
5 # Compare versions
6 aurver="$(eval "$PKGBUILD" &>/dev/null; echo "$pkgver-$pkgrel")" || true
7 - localver="$(LANG=C pacman -Qi "$pkgname" | awk '/^Version/ {print $3}')"
8 + localver="$(LANG=C $PACMAN -Qi "$pkgname" | awk '/^Version/ {print $3}')"
9 if [[ "$ONLYVER" == "true" ]]; then
10 aurver="$(echo "$aurver" | cut -d'-' -f1)"
11 localver="$(echo "$localver" | cut -d'-' -f1)"
12 @@ -144,8 +144,11 @@
13 echo -e "${GREEN}==> ${NC}Searching for new version on AUR"
16 +# Set pacman path. (Allows to override pacman, for example, for 32-bit chroots.)
17 +PACMAN=${PACMAN:-pacman}
19 # Main loop
20 -for pkg in $(pacman -Qqm); do
21 +for pkg in $($PACMAN -Qqm); do
22 aurcmp "$pkg"
23 done