donate-cpu-server.py: Fix rare version verification issue (#2008)

The loop should be exited as soon as the line with the Cppcheck version
information has been found. Not only when the verification failed.
This commit is contained in:
Sebastian 2019-07-17 14:29:07 +02:00 committed by GitHub
parent 9973db3a71
commit a309095ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import operator
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
# changes)
SERVER_VERSION = "1.1.3"
SERVER_VERSION = "1.1.4"
OLD_VERSION = '1.88'
@ -885,7 +885,7 @@ def server(server_address_port, packages, packageIndex, resultPath):
line)
print('Ignoring data.')
old_version_wrong = True
break
break
if not versions_found:
print('Cppcheck versions missing in result data. Ignoring data.')
continue