donate-cpu.py: fixed stupid mistakes in client version update notification (#4290)

This commit is contained in:
Oliver Stöneberg 2022-07-18 23:10:33 +02:00 committed by GitHub
parent 6dc606fd6a
commit 7ee450ed21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ while True:
p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
try:
comm = p.communicate()
return comm[1]
return comm[0].decode(encoding='utf-8', errors='ignore').strip()
except:
return None
@ -288,6 +288,6 @@ while True:
upload_info(package, info_output, server_address)
if not max_packages or packages_processed < max_packages:
print('Sleep 5 seconds..')
if (client_version_head is not None) and (StrictVersion(client_version_head) >= StrictVersion(get_client_version())):
if (client_version_head is not None) and (StrictVersion(client_version_head) > StrictVersion(get_client_version())):
print("ATTENTION: A newer client version ({}) is available - please update!".format(client_version_head))
time.sleep(5)

View File

@ -15,7 +15,7 @@ import shlex
# 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)
CLIENT_VERSION = "1.3.28"
CLIENT_VERSION = "1.3.29"
# Timeout for analysis with Cppcheck in seconds
CPPCHECK_TIMEOUT = 30 * 60