[pacman-dev] [PATCH] contrib: Remove harcoded /etc/pacman.conf
William Giokas
1007380 at gmail.com
Wed May 15 12:25:58 EDT 2013
Signed-off-by: William Giokas <1007380 at gmail.com>
---
contrib/checkupdates.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/checkupdates.sh.in b/contrib/checkupdates.sh.in
index 9244d85..b41dfa0 100644
--- a/contrib/checkupdates.sh.in
+++ b/contrib/checkupdates.sh.in
@@ -32,7 +32,7 @@ fi
trap 'rm -f $CHECKUPDATE_DB/db.lck' INT TERM EXIT
DBPath="${DBPath:- at localstatedir@/lib/pacman/}"
-eval $(awk -F' *= *' '$1 ~ /DBPath/ { print $1 "=" $2 }' /etc/pacman.conf)
+eval $(awk -F' *= *' '$1 ~ /DBPath/ { print $1 "=" $2 }' @sysconfdir@/pacman.conf)
mkdir -p "$CHECKUPDATE_DB"
ln -s "${DBPath}/local" "$CHECKUPDATE_DB" &> /dev/null
--
1.8.3.rc2
More information about the pacman-dev
mailing list