diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-12 16:16:57 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-12 22:05:03 -0700 |
| commit | 5afcd0afe0484ecb646e4c17f0d38814eba34065 (patch) | |
| tree | c665bcc55c0f9b61360e9dc448ecaeee40a832bb /toolsrc/src | |
| parent | ea42d5c686bb5d404c42045491052347bbfdcdd6 (diff) | |
| download | vcpkg-5afcd0afe0484ecb646e4c17f0d38814eba34065.tar.gz vcpkg-5afcd0afe0484ecb646e4c17f0d38814eba34065.zip | |
Use status_db.find_installed()
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg_Dependencies.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg_Dependencies.cpp b/toolsrc/src/vcpkg_Dependencies.cpp index 3a53c42d1..6e22c8b82 100644 --- a/toolsrc/src/vcpkg_Dependencies.cpp +++ b/toolsrc/src/vcpkg_Dependencies.cpp @@ -183,8 +183,8 @@ namespace vcpkg::Dependencies continue; } - const StatusParagraphs::const_iterator it = status_db.find(spec); - if (it == status_db.end() || (*it)->state == InstallState::NOT_INSTALLED) + const StatusParagraphs::const_iterator it = status_db.find_installed(spec); + if (it == status_db.end()) { was_examined.emplace(spec, RemovePlanAction(RemovePlanType::NOT_INSTALLED, RequestType::USER_REQUESTED)); continue; |
