summaryrefslogtreecommitdiff
path: root/scripts/repo-add.in
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-05-28 20:49:28 +0100
committerDan McGee <dan@archlinux.org>2007-05-29 17:49:24 -0400
commit5c41d0eb4c7034998d9718f89e12f44fe872ab9a (patch)
tree92905a04a5987ab7e9ec17515417d16cffb556b4 /scripts/repo-add.in
parentd255d511aa9cbfa7b3bf056908c07f5afed69b72 (diff)
downloadpacman-5c41d0eb4c7034998d9718f89e12f44fe872ab9a.tar.xz
Substitute config directory in scripts.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'scripts/repo-add.in')
-rw-r--r--scripts/repo-add.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-add.in b/scripts/repo-add.in
index f8c71557..fdcc43a9 100644
--- a/scripts/repo-add.in
+++ b/scripts/repo-add.in
@@ -237,8 +237,8 @@ if [ $# -lt 2 ]; then
fi
# source system and user makepkg.conf
-if [ -r /etc/makepkg.conf ]; then
- source /etc/makepkg.conf
+if [ -r @SYSCONFDIR@/makepkg.conf ]; then
+ source @SYSCONFDIR@/makepkg.conf
else
echo "ERROR: /etc/makepkg.conf not found. Can not continue." >&2
exit 1 # $E_CONFIG_ERROR # TODO: error codes