summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-28 21:35:48 -0500
committerDan McGee <dan@archlinux.org>2011-06-30 10:29:49 -0500
commitc2e6a01a2897e13849e2cdc8291d862d4ea0ee44 (patch)
treed435e43c6b58ecfa8f08713d0b09491166e650cd
parent4c80f994c34a64f14c46befcf7dbc376276f53d4 (diff)
downloadpacman-c2e6a01a2897e13849e2cdc8291d862d4ea0ee44.tar.xz
makepkg: only source user override if using default config file
Otherwise there is no way to easily test or run with a standalone config file without outside interference. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 43bed72b..10272b38 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1829,8 +1829,9 @@ else
exit 1 # $E_CONFIG_ERROR
fi
-# Source user-specific makepkg.conf overrides
-if [[ -r ~/.makepkg.conf ]]; then
+# Source user-specific makepkg.conf overrides, but only if no override config
+# file was specified
+if [[ $MAKEPKG_CONF = "$confdir/makepkg.conf" && -r ~/.makepkg.conf ]]; then
source ~/.makepkg.conf
fi