diff options
author | Allan McRae <allan@archlinux.org> | 2008-10-29 05:21:28 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-11-01 01:46:13 +0100 |
commit | c4b9991258fb360e0d140a84efe7803eb633df79 (patch) | |
tree | fc7d53cee6997d80e7899f61481a6530e7b63890 /scripts | |
parent | 8d33dcb81c464f5e42d83078472bc509e087dd62 (diff) | |
download | pacman-c4b9991258fb360e0d140a84efe7803eb633df79.tar.gz pacman-c4b9991258fb360e0d140a84efe7803eb633df79.tar.xz |
makepkg: actually fix passing PKGBUILD from pipe
If PKGBUILD (BUILDSCRIPT) is not found, test for information from a
pipe and use that. Fixes FS#9187.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 687897ee..f3edd79e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1347,8 +1347,13 @@ unset replaces depends conflicts backup source install build makedepends unset optdepends options noextract 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 source "$BUILDSCRIPT" |