[pacman-dev] [PATCH] makepkg: error on invalid optdepends

2011-02-02 Thread Allan McRae
Missed in commit a88cb03a. Signed-off-by: Allan McRae al...@archlinux.org --- scripts/makepkg.sh.in |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ebafa0b..e8f57e1 100644 --- a/scripts/makepkg.sh.in +++

[pacman-dev] makepkg bash-3.2 issue

2011-02-02 Thread Allan McRae
Hi, Can anyone give me a fix for this: local optdepends_list eval $(awk '/^[[:space:]]*optdepends=/,/\)/' $BUILDFILE | sed s/optdepends=/optdepends_list+=/) In bash-3.2, this gives optdepends_list with as the first item in the array. It appears that declaring a local variable in bash-3.2

Re: [pacman-dev] makepkg bash-3.2 issue

2011-02-02 Thread Dan McGee
On Wed, Feb 2, 2011 at 6:33 PM, Allan McRae al...@archlinux.org wrote: Hi, Can anyone give me a fix for this: local optdepends_list eval $(awk '/^[[:space:]]*optdepends=/,/\)/' $BUILDFILE | sed s/optdepends=/optdepends_list+=/) In bash-3.2, this gives optdepends_list with as the first

Re: [pacman-dev] makepkg bash-3.2 issue

2011-02-02 Thread Dave Reisner
On Thu, Feb 03, 2011 at 10:33:45AM +1000, Allan McRae wrote: Hi, Can anyone give me a fix for this: local optdepends_list eval $(awk '/^[[:space:]]*optdepends=/,/\)/' $BUILDFILE | sed s/optdepends=/optdepends_list+=/) In bash-3.2, this gives optdepends_list with as the first item in

Re: [pacman-dev] [PATCH] makepkg: make SRCPKGDEST default to $startdir

2011-02-02 Thread Dan McGee
On Tue, Feb 1, 2011 at 11:54 PM, Allan McRae al...@archlinux.org wrote: On 02/02/11 01:43, Dan McGee wrote: On Tue, Feb 1, 2011 at 8:59 AM, Cedric Staniewskiced...@gmx.ca  wrote: The current behaviour, which is placing source packages in PKGDEST if SRCPKGDEST is not set, is inconsistent with

[pacman-dev] [PATCH] makepkg: initialize local arrays to empty

2011-02-02 Thread Allan McRae
Fixes bash-3.2 compatibility. Thanks-to: Dave Reisner d...@falconindy.com Signed-off-by: Allan McRae al...@archlinux.org --- scripts/makepkg.sh.in |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index e8f57e1..13415fb