mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-01 13:37:55 +08:00
Fix find_installed()
This commit is contained in:
parent
66e6e6e9e2
commit
ad24821dce
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user