From d8d008a3a993a3e3c77e54a4fc51660d42f6c7f0 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 26 Jul 2023 00:25:44 +0200 Subject: [PATCH] Clean detected current version: replace + sign by - --- check_forgejo_upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_forgejo_upgrade b/check_forgejo_upgrade index ceb5db6..65a4c41 100755 --- a/check_forgejo_upgrade +++ b/check_forgejo_upgrade @@ -74,6 +74,9 @@ if not CURRENT: print(EXCEPTION if EXCEPTION else "") sys.exit(3) +CURRENT = CURRENT.replace('+', '-') +logging.debug('Cleaned current version: %s', CURRENT) + LATEST = None try: logging.debug("Get releases RSS feed from %s...", options.url)