summaryrefslogtreecommitdiffstats
path: root/qml/mageiawelcome.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-08-13 16:26:46 +0200
committerPapoteur <papoteur@mageia.org>2020-08-13 16:26:46 +0200
commit36944021daf02572357f391d7bf3d8a90359854f (patch)
tree05f04cb9b9f25c46c21ad089a9aa742c9dcb3003 /qml/mageiawelcome.py
parent3c195b4ed926e7de522796cf9fda55a4d1b3708f (diff)
downloadmageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar
mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar.gz
mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar.bz2
mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar.xz
mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.zip
Fix test on active repositories (mga#27071)
Diffstat (limited to 'qml/mageiawelcome.py')
-rw-r--r--qml/mageiawelcome.py6
1 files changed, 3 insertions, 3 deletions
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")