From 36944021daf02572357f391d7bf3d8a90359854f Mon Sep 17 00:00:00 2001 From: Papoteur Date: Thu, 13 Aug 2020 16:26:46 +0200 Subject: Fix test on active repositories (mga#27071) --- qml/mageiawelcome.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qml') diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index 52e0339..72be54e 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -135,15 +135,15 @@ class Launcher(QObject): except subprocess.CallProcessError: print("Error with urpmq") return - for line in active.stdout: + for line in active.stdout.splitlines(): if line.startswith('Core Release'): core = True if line.startswith('Core Updates'): updates = True if line.startswith('Tainted Release'): - core = True + tainted = True if line.startswith('Tainted Updates'): - core = True + t_updates = True if repo == 'tainted' and not (tainted and t_updates) : # repo not enabled # print("Tainted not active") -- cgit v1.2.1