Fix find_installed()

This commit is contained in:
Alexander Karatarakis 2017-04-07 14:25:12 -07:00
parent 66e6e6e9e2
commit ad24821dce

View File

@ -32,7 +32,7 @@ namespace vcpkg
StatusParagraphs::const_iterator StatusParagraphs::find_installed(const std::string& name, const Triplet& target_triplet) const
{
const const_iterator it = find(name, target_triplet);
if (it != end() && (*it)->want == Want::INSTALL)
if (it != end() && (*it)->want == Want::INSTALL && (*it)->state == InstallState::INSTALLED)
{
return it;
}