29 Oct
2008
29 Oct
'08
4:17 a.m.
On Tue, Oct 28, 2008 at 11:13 PM, Allan McRae <allan@archlinux.org> wrote:
Adding this fixes reading from a pipe properly...
if [ ! -f "$BUILDSCRIPT" ]; then - error "$(gettext "%s does not exist.")" "$BUILDSCRIPT" - exit 1 + if [ -t 0 ]; then + error "$(gettext "%s does not exist.")" "$BUILDSCRIPT" + exit 1 + else + # PKGBUILD passed through a pipe + BUILDSCRIPT=/dev/stdin + fi fi
Do you want an altered version of the previous patch or a new patch?
Let's go with another patch, I have the original on my local master branch already: http://code.toofishes.net/gitweb.cgi?p=pacman.git;a=commitdiff;h=8d33dcb81c4... -Dan