[arch-projects] [devtools] [PATCH] makechrootpkg: Use XDG_CONFIG_HOME for makepkg.conf
2 Jun
2016
2 Jun
'16
8:47 a.m.
Implemented the same way as in makepkg. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- makechrootpkg.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/makechrootpkg.in b/makechrootpkg.in index 709e824..cca3af0 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -306,7 +306,12 @@ fi umask 0022 -load_vars "$USER_HOME/.makepkg.conf" +XDG_PACMAN_DIR="${XDG_CONFIG_HOME:-$USER_HOME/.config}/pacman" +if [[ -r "$XDG_PACMAN_DIR/makepkg.conf" ]]; then + load_vars "$XDG_PACMAN_DIR/makepkg.conf" +elif [[ -r "$HOME/.makepkg.conf" ]]; then + load_vars "$USER_HOME/.makepkg.conf" +fi load_vars /etc/makepkg.conf # Use PKGBUILD directory if these don't exist -- 2.8.3
3125
Age (days ago)
3125
Last active (days ago)
0 comments
1 participants
participants (1)
-
Johannes Löthberg