fix condition

This commit is contained in:
Curtis.Bezault 2019-07-23 15:31:53 -07:00
parent 62ec13ba36
commit e181376604
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace vcpkg
{
const auto& realfs = Files::get_real_filesystem();
if (realfs.is_regular_file(file_hash.first) &&
if (!realfs.is_regular_file(file_hash.first) ||
Hash::get_file_hash(realfs, file_hash.first, "SHA1") != file_hash.second)
{
consistency = ConsistencyState::INCONSISTENT;