X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.cpp;h=6e2b21431fc5d1808fef9fd691ccd83ff1bd3275;hb=d10be3251b2b6605723c6c753a4c9a9ba35c9950;hp=402d20d0b8722ae09d09e15af9eec27955180cae;hpb=1ed833343bc83b83c5f61cbfd74423bbba677a04;p=builder.git diff --git a/source/tool.cpp b/source/tool.cpp index 402d20d..6e2b214 100644 --- a/source/tool.cpp +++ b/source/tool.cpp @@ -43,15 +43,13 @@ void Tool::prepare() return; prepared = true; + if(!command.empty()) + executable = builder.get_vfs().find_binary(command); do_prepare(); - if(!executable && !command.empty()) + if(!executable) { - executable = builder.get_vfs().find_binary(command); - if(!executable) - { - builder.get_logger().log("problems", "Can't find executable %s for %s", command, tag); - problems.push_back(format("Can't find executable %s", command)); - } + builder.get_logger().log("problems", "Can't find executable %s for %s", command, tag); + problems.push_back(format("Can't find executable %s", command)); } }