aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorCurtis.Bezault <curtbezault@gmail.com>2019-07-23 15:26:13 -0700
committerCurtis.Bezault <curtbezault@gmail.com>2019-07-23 15:26:13 -0700
commit2f2a45595fa925edeace250b694d70095c42b5fa (patch)
treeea8e21720d232f4396a99631e159b8d03bfd44eb /toolsrc/include
parent459908ae14458a615bb0a8c278c799cabd34e558 (diff)
downloadvcpkg-2f2a45595fa925edeace250b694d70095c42b5fa.tar.gz
vcpkg-2f2a45595fa925edeace250b694d70095c42b5fa.zip
Prompt rebuild if external hash changes
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/binaryparagraph.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/binaryparagraph.h b/toolsrc/include/vcpkg/binaryparagraph.h
index ec14f8a97..a95a68090 100644
--- a/toolsrc/include/vcpkg/binaryparagraph.h
+++ b/toolsrc/include/vcpkg/binaryparagraph.h
@@ -7,6 +7,13 @@
namespace vcpkg
{
+ enum class ConsistencyState : unsigned
+ {
+ UNKNOWN = 0,
+ CONSISTENT,
+ INCONSISTENT,
+ };
+
/// <summary>
/// Built package metadata
/// </summary>
@@ -23,6 +30,8 @@ namespace vcpkg
std::string dir() const;
+ bool is_consistent() const;
+
PackageSpec spec;
std::string version;
std::string description;
@@ -33,6 +42,8 @@ namespace vcpkg
std::string abi;
SourceParagraph::TYPE type;
std::unordered_map<std::string, std::string> external_files;
+
+ mutable ConsistencyState consistency = ConsistencyState::UNKNOWN;
};
struct BinaryControlFile