This commit is contained in:
@@ -30,4 +30,13 @@ Configuration getLatestConfiguration(Configuration *configs, int count) {
|
||||
}
|
||||
}
|
||||
return latest;
|
||||
}
|
||||
|
||||
bool isVersionNewer(Version oldVersion, Version newVersion) {
|
||||
if (newVersion.major > oldVersion.major ||
|
||||
(newVersion.major == oldVersion.major && newVersion.minor > oldVersion.minor) ||
|
||||
(newVersion.major == oldVersion.major && newVersion.minor == oldVersion.minor && newVersion.patch > oldVersion.patch)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user