FS#15696 - [makepkg] exit on error in build or package function

Attached to Project: Pacman
Opened by Allan McRae (Allan) - Monday, 27 July 2009, 05:08 GMT
Last edited by Allan McRae (Allan) - Monday, 07 September 2009, 05:49 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.2
Due in Version 3.4.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
It would be useful if makepkg exited on the first error to occur in the build() or package() function without having to use "|| return 1" everywhere.

This can be achieved using (e.g.) "build | cat -" but this breaks split packaging as variables defined within a function do not survive the piping. The attached files shows a minimal example.
   test.sh (0.6 KiB)
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 07 September 2009, 05:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 545eac14

Loading...