Fix manifest version greater check

This commit is contained in:
Oren Bengigi 2020-11-18 20:43:49 +02:00
parent 6c1f45717b
commit a6b3b7050a
1 changed files with 2 additions and 2 deletions

View File

@ -187,11 +187,11 @@ bool Manifest::versionGreater(const Manifest *b, const std::function<int(const s
bool greater; bool greater;
if (handle) if (handle)
{ {
greater = handle(localVersion, bVersion) >= 0; greater = handle(localVersion, bVersion) > 0;
} }
else else
{ {
greater = cmpVersion(localVersion, bVersion) >= 0; greater = cmpVersion(localVersion, bVersion) > 0;
} }
return greater; return greater;
} }