fix small bug in find_from_PATH (which prevents from using already installed tool) (#3904)

This commit is contained in:
menuet 2018-07-18 01:57:39 +02:00 committed by Robert Schumacher
parent cc89413fd1
commit 1f4dde2b22

View File

@ -263,7 +263,7 @@ namespace vcpkg::Files
for (auto&& ext : EXTS)
{
auto p = fs::u8path(base + ext.c_str());
if (Util::find(ret, p) != ret.end() && this->exists(p))
if (Util::find(ret, p) == ret.end() && this->exists(p))
{
ret.push_back(p);
Debug::println("Found path: %s", p.u8string());