[pacman-dev] [PATCH] makepkg: enable passing PKGBUILD from pipe

Dan McGee dpmcgee at gmail.com
Wed Oct 29 00:17:19 EDT 2008


On Tue, Oct 28, 2008 at 11:13 PM, Allan McRae <allan at 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=8d33dcb81c464f5e42d83078472bc509e087dd62

-Dan



More information about the pacman-dev mailing list