aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-01-23 01:56:25 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-01-23 01:56:25 -0800
commit10d712ed018fe3b2cd8d485e41f32ad555d9a1f1 (patch)
tree60f6630f23b07f3b6d7be1fcc05cca2845b820c7 /toolsrc/include
parent3e42585f47a7c6abaa516cf2ed7b1e702ffd38ca (diff)
downloadvcpkg-10d712ed018fe3b2cd8d485e41f32ad555d9a1f1.tar.gz
vcpkg-10d712ed018fe3b2cd8d485e41f32ad555d9a1f1.zip
[vcpkg] Added StatusParagraph::is_installed()
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/statusparagraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/statusparagraph.h b/toolsrc/include/vcpkg/statusparagraph.h
index ca84b1bb7..051acf95f 100644
--- a/toolsrc/include/vcpkg/statusparagraph.h
+++ b/toolsrc/include/vcpkg/statusparagraph.h
@@ -32,6 +32,8 @@ namespace vcpkg
StatusParagraph();
explicit StatusParagraph(std::unordered_map<std::string, std::string>&& fields);
+ bool is_installed() const { return want == Want::INSTALL && state == InstallState::INSTALLED; }
+
BinaryParagraph package;
Want want;
InstallState state;