Skip to content

Commit 4871150

Browse files
committed
feat(versions): correctly report redict server version
This is yet another Redis replacement, so handle it similarly as Valkey. Ported from Codeberg's https://codeberg.org/Codeberg-Infrastructure/weblate-docker/src/branch/main/patches/0003-utils.requirements.py-report-redict-version-correctl.patch
1 parent 27c30d0 commit 4871150

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

weblate/utils/requirements.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ def get_cache_version() -> tuple[str, str, str] | None:
198198
report_error("Redis version check")
199199
return None
200200

201+
if version := client_info.get("redict_version"): # codespell:ignore redict
202+
return (
203+
"Redict server", # codespell:ignore redict
204+
"https://redict.io/", # codespell:ignore redict
205+
version,
206+
)
201207
if version := client_info.get("valkey_version"):
202208
return ("Valkey server", "https://valkey.io/", version)
203209
if version := client_info.get("redis_version"):

0 commit comments

Comments
 (0)