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>
This commit is contained in:
parent
8d33dcb81c
commit
c4b9991258
1 changed files with 7 additions and 2 deletions
|
@ -1347,8 +1347,13 @@ unset replaces depends conflicts backup source install build makedepends
|
||||||
unset optdepends options noextract
|
unset optdepends options noextract
|
||||||
|
|
||||||
if [ ! -f "$BUILDSCRIPT" ]; then
|
if [ ! -f "$BUILDSCRIPT" ]; then
|
||||||
|
if [ -t 0 ]; then
|
||||||
error "$(gettext "%s does not exist.")" "$BUILDSCRIPT"
|
error "$(gettext "%s does not exist.")" "$BUILDSCRIPT"
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
# PKGBUILD passed through a pipe
|
||||||
|
BUILDSCRIPT=/dev/stdin
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "$BUILDSCRIPT"
|
source "$BUILDSCRIPT"
|
||||||
|
|
Loading…
Add table
Reference in a new issue