Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/rebuildpkgs.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-03-28 18:34:42 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2017-04-05 14:42:43 -0400
commit7eefbd294efa5b226fc60953ee2e92f1641fdeea (patch)
tree03bee4c28d894f7dec0266a37d469ce5e8f4b6c1 /rebuildpkgs.in
parent285084879f195c7dab75dc8ddb9c4895ab98f9ec (diff)
Handle makepkg.conf more consistently
- checkpkg: Check ~/.config/pacman/makepkg.conf ; not just ~/.makepkg.conf - commitpkg: Likewise - rebuildpkgs: Check for user makepkg.conf files, not just the system one in /etc
Diffstat (limited to 'rebuildpkgs.in')
-rw-r--r--rebuildpkgs.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/rebuildpkgs.in b/rebuildpkgs.in
index 8a141e0..9197231 100644
--- a/rebuildpkgs.in
+++ b/rebuildpkgs.in
@@ -26,6 +26,13 @@ else
die '/etc/makepkg.conf not found!'
fi
+# Source user-specific makepkg.conf overrides
+if [[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/pacman/makepkg.conf" ]]; then
+ source "${XDG_CONFIG_HOME:-$HOME/.config}/pacman/makepkg.conf"
+elif [[ -r "$HOME/.makepkg.conf" ]]; then
+ source "$HOME/.makepkg.conf"
+fi
+
bump_pkgrel() {
# Get the current pkgrel from SVN and update the working copy with it
# This prevents us from incrementing out of control :)