Skip to content

Commit 7ee450e

Browse files
authored
donate-cpu.py: fixed stupid mistakes in client version update notification (#4290)
1 parent 6dc606f commit 7ee450e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tools/donate-cpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def get_client_version_head():
233233
p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
234234
try:
235235
comm = p.communicate()
236-
return comm[1]
236+
return comm[0].decode(encoding='utf-8', errors='ignore').strip()
237237
except:
238238
return None
239239

@@ -288,6 +288,6 @@ def get_client_version_head():
288288
upload_info(package, info_output, server_address)
289289
if not max_packages or packages_processed < max_packages:
290290
print('Sleep 5 seconds..')
291-
if (client_version_head is not None) and (StrictVersion(client_version_head) >= StrictVersion(get_client_version())):
291+
if (client_version_head is not None) and (StrictVersion(client_version_head) > StrictVersion(get_client_version())):
292292
print("ATTENTION: A newer client version ({}) is available - please update!".format(client_version_head))
293293
time.sleep(5)

tools/donate_cpu_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
1616
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
1717
# changes)
18-
CLIENT_VERSION = "1.3.28"
18+
CLIENT_VERSION = "1.3.29"
1919

2020
# Timeout for analysis with Cppcheck in seconds
2121
CPPCHECK_TIMEOUT = 30 * 60

0 commit comments

Comments
 (0)