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
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
|
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. |
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
Monday, 07 September 2009, 05:49 GMT
Reason for closing: Fixed
Additional comments about closing: git commit 545eac14
test.sh