]> git.tdb.fi Git - builder.git/commit
Fix logic issues with Tool::prepare
authorMikko Rasa <tdb@tdb.fi>
Mon, 26 Dec 2022 12:07:51 +0000 (14:07 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 26 Dec 2022 19:12:48 +0000 (21:12 +0200)
commit15cf75a5ac62454d90b8b2987b1940710056f4d0
tree6c66b65eecffbbbd37582868c36035d23911dd26
parentd917c5fd92e7ae50b35e7024a0a2365438bead72
Fix logic issues with Tool::prepare

CustomizedTool's do_prepare will call the parent tool's prepare with
itself as argument, so the prepared flag shouldn't be checked in this
case.

The command and executable checks are also better to do in the outer
call to avoid doing them twice, since they don't depend on the base
tool's logic.
source/customizedtool.cpp
source/tool.cpp
source/tool.h