diff options
author | Papoteur <papoteur@mageia.org> | 2020-08-13 16:26:46 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2020-08-13 16:26:46 +0200 |
commit | 36944021daf02572357f391d7bf3d8a90359854f (patch) | |
tree | 05f04cb9b9f25c46c21ad089a9aa742c9dcb3003 | |
parent | 3c195b4ed926e7de522796cf9fda55a4d1b3708f (diff) | |
download | mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar.gz mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar.bz2 mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.tar.xz mageiawelcome-36944021daf02572357f391d7bf3d8a90359854f.zip |
Fix test on active repositories (mga#27071)
-rwxr-xr-x[-rw-r--r--] | i18n/update_translations.sh | 0 | ||||
-rw-r--r-- | qml/mageiawelcome.py | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/i18n/update_translations.sh b/i18n/update_translations.sh index 643d9e1..643d9e1 100644..100755 --- a/i18n/update_translations.sh +++ b/i18n/update_translations.sh 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") |