From d5d06532d0fcfcf20e2ebd3fe239fc95e60475d8 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 30 Jan 2024 23:09:39 +0100 Subject: Fix decoding of envr --- mga-advisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mga-advisor.py b/mga-advisor.py index 173894d..a8e01c5 100644 --- a/mga-advisor.py +++ b/mga-advisor.py @@ -299,7 +299,7 @@ class Widget(QWidget): if p.returncode == 0: # example to parse : * Tue Aug 15 2023 squidf 116.0.5845.96-1.mga9.tainted line1 = p.stdout.split('\n')[0] - analyze = re.search(r"^\*.*\s(\w*[:\.\d]+)-([\.\d]+)", line1) + analyze = re.search(r"^\*.*\s(\w*[:\.\w]+)-([\.\d]+)", line1) if analyze is not None: # get version, remove epoch version = analyze.group(1).split(":")[-1] -- cgit v1.2.1