Skip to content

Commit a997d0b

Browse files
authored
donate-cpu.py: Introduce version number for client script (#1654)
The version number is added to the result output so issues could be more easily reproduced and in the future if it is necessary to handle any specific version of the client by the server in a special way (for example because it is erroneous) this is possible now.
1 parent fc7494c commit a997d0b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/donate-cpu.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
import platform
3535

3636

37+
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
38+
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
39+
# changes)
40+
CLIENT_VERSION = "1.0.0"
41+
42+
3743
def checkRequirements():
3844
result = True
3945
for app in ['g++', 'git', 'make', 'wget']:
@@ -482,6 +488,7 @@ def uploadInfo(package, info_output, server_address):
482488
output = 'cppcheck-options: ' + cppcheck_options + '\n'
483489
output += 'platform: ' + platform.platform() + '\n'
484490
output += 'python: ' + platform.python_version() + '\n'
491+
output += 'client-version: ' + CLIENT_VERSION + '\n'
485492
output += 'cppcheck: ' + ' '.join(cppcheckVersions) + '\n'
486493
output += 'count:' + count + '\n'
487494
output += 'elapsed-time:' + elapsedTime + '\n'

0 commit comments

Comments
 (0)