mattatcha / pacbuilder

Automatically exported from code.google.com/p/pacbuilder
0 stars 0 forks source link

Customized ~/.pacbuilder.conf after /etc/pacbuilder.conf ? #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. both abs and makepkg/makeworld provide support for the customized ~/.
{abs,makepkg}.conf after system wide /etc/{abs,makepkg}.conf, which is 
better for variable situations ... anyhow, pacbuilder lacks ...
2.
3.

What is the expected output? What do you see instead?
none

What version of the product are you using? On what operating system?
svn revision 132

Please provide any additional information below.
for revision 132, two lines might be enough:
---------------------------------------------------
@@ -83,7 +83,9 @@
   LICENSE="GPLv3"

   source /etc/makepkg.conf
+  source ~/.makepkg.conf
   source /etc/${CMD_BIN}.conf
+  source ~/.${CMD_BIN}.conf

   [ -z "$CARCH" ] && CARCH="i686"
   [ -z "$TMP_PATH" ] && TMP_PATH=/tmp
---------------------------------------------------

Original issue reported on code.google.com by shyo...@gmail.com on 17 Feb 2009 at 5:44

GoogleCodeExporter commented 9 years ago
As if not everyone has ~/.${CMD_BIN}.conf, so the following might be better:
---------------------------------------------------
@@ -83,7 +83,13 @@
   LICENSE="GPLv3"

   source /etc/makepkg.conf
+  if [ -r ~/.makepkg.conf ]; then
+    source ~/.makepkg.conf
+  fi
   source /etc/${CMD_BIN}.conf
+  if [ -r ~/.${CMD_BIN}.conf ]; then
+    source ~/.${CMD_BIN}.conf
+  fi

   [ -z "$CARCH" ] && CARCH="i686"
   [ -z "$TMP_PATH" ] && TMP_PATH=/tmp
---------------------------------------------------

Original comment by shyo...@gmail.com on 17 Feb 2009 at 7:08

GoogleCodeExporter commented 9 years ago
implemented in r133

Original comment by bash.lnx@gmail.com on 15 Apr 2009 at 5:43