aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-12 16:16:57 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-12 22:05:03 -0700
commit5afcd0afe0484ecb646e4c17f0d38814eba34065 (patch)
treec665bcc55c0f9b61360e9dc448ecaeee40a832bb /toolsrc/src
parentea42d5c686bb5d404c42045491052347bbfdcdd6 (diff)
downloadvcpkg-5afcd0afe0484ecb646e4c17f0d38814eba34065.tar.gz
vcpkg-5afcd0afe0484ecb646e4c17f0d38814eba34065.zip
Use status_db.find_installed()
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg_Dependencies.cpp4
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;