summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2024-01-30 23:09:39 +0100
committerPapoteur <papoteur@mageia.org>2024-01-30 23:09:39 +0100
commitd5d06532d0fcfcf20e2ebd3fe239fc95e60475d8 (patch)
treeb99b44bf6a9e48f7aa0c5b8e1128e57b8f75a1ac
parentf6848066dacd52aa5102dc1557ebb36dd8a66284 (diff)
downloadmga-advisor-d5d06532d0fcfcf20e2ebd3fe239fc95e60475d8.tar
mga-advisor-d5d06532d0fcfcf20e2ebd3fe239fc95e60475d8.tar.gz
mga-advisor-d5d06532d0fcfcf20e2ebd3fe239fc95e60475d8.tar.bz2
mga-advisor-d5d06532d0fcfcf20e2ebd3fe239fc95e60475d8.tar.xz
mga-advisor-d5d06532d0fcfcf20e2ebd3fe239fc95e60475d8.zip
Fix decoding of envr
-rw-r--r--mga-advisor.py2
1 files changed, 1 insertions, 1 deletions
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 <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]