[pacman-dev] makepkg -w argument removed?

Dan McGee dpmcgee at gmail.com
Wed Jan 24 01:06:16 EST 2007


Status on this? Seems like a good solution to me.

-Dan

On 1/22/07, James Rosten <seinfeld90 at gmail.com> wrote:
> In that case we preserve the environment's PKGDEST and SRCDEST in
> underscored versions, _PKGDEST and _SRCDEST.  Then source the makepkg.conf and
> if the underscored versions are empty then we just fill PKGDEST and SRCDEST
> with makepkg.conf's ones using the :- spiel.
>
> Patch is below.
>
> ~ Jamie / yankees26
>
> Signed-off-by: James Rosten <seinfeld90 at gmail.com>
> --- pacman-lib.orig/scripts/makepkg 2007-01-22 16:44:05.000000000 -0500
> +++ pacman-lib/scripts/makepkg  2007-01-22 18:47:38.000000000 -0500
> @@ -27,7 +27,6 @@
>
>  myver='3.0.0'
>  startdir=$(pwd)
> -PKGDEST=$startdir
>
>  BUILDSCRIPT="PKGBUILD"
>  PKGEXT="pkg.tar.gz"
> @@ -314,6 +313,8 @@ usage() {
>
>  ARGLIST=$@
>
> +_PKGDEST=$PKGDEST
> +_SRCDEST=$SRCDEST
>  #Source makepkg.conf; fail if it is not found
>  if [ -f /etc/makepkg.conf ]; then
>     source /etc/makepkg.conf
> @@ -327,6 +328,9 @@ if [ -f ~/.makepkg.conf ]; then
>     source ~/.makepkg.conf
>  fi
>
> +PKGDEST=${_PKGDEST:-$PKGDEST}
> +SRCDEST=${_SRCDEST:-$SRCDEST}
> +
>  while [ "$#" -ne "0" ]; do
>     case $1 in
>         # pacman
>
>
> _______________________________________________
> pacman-dev mailing list
> pacman-dev at archlinux.org
> http://www.archlinux.org/mailman/listinfo/pacman-dev
>




More information about the pacman-dev mailing list