core/pkg-generic: allow step hooks to fail a step
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 3 Nov 2015 19:06:03 +0000 (20:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 4 Nov 2015 13:10:45 +0000 (14:10 +0100)
commite76467031e226aa348570c00c7e4a5ad60ae6c75
treefc906acae381b2af8779b62caf0991e58f93f933
parentad727d467fab1633f7ba74855792cc424780eb55
core/pkg-generic: allow step hooks to fail a step

Currently, we touch our stamp files before we call the step hooks.
This means a step hook can not properly fail a step, since the stamp
file exists even if the hook exits in error, thus a subsequent 'make'
would not try to redo that step.

Fix that by calling the hooks before we touch the stamp files.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Cc: Peter Seiderer <ps.report@gmx.net>
Cc: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-generic.mk