diff options
author | Papoteur <papoteur@mageia.org> | 2019-02-03 22:41:49 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2019-02-03 22:43:38 +0100 |
commit | 708f51d4c078c5360d50c4e5995129891c3d551b (patch) | |
tree | e919e34eb909f214043d4ff3c22d48422a5fbd57 /qml/helpers.py | |
parent | ef13f51356527a27e9419cb2df8d39c99242b107 (diff) | |
download | mageiawelcome-708f51d4c078c5360d50c4e5995129891c3d551b.tar mageiawelcome-708f51d4c078c5360d50c4e5995129891c3d551b.tar.gz mageiawelcome-708f51d4c078c5360d50c4e5995129891c3d551b.tar.bz2 mageiawelcome-708f51d4c078c5360d50c4e5995129891c3d551b.tar.xz mageiawelcome-708f51d4c078c5360d50c4e5995129891c3d551b.zip |
Applications: secure rpm query after installation (mga#24095)
Diffstat (limited to 'qml/helpers.py')
-rw-r--r-- | qml/helpers.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qml/helpers.py b/qml/helpers.py index 7d69eb1..f777f04 100644 --- a/qml/helpers.py +++ b/qml/helpers.py @@ -3,8 +3,6 @@ import gettext import rpm -ts = rpm.TransactionSet() - def get_desktop_name(x): return { '01plasma':'KDE Plasma', @@ -33,7 +31,7 @@ def get_desktop_name2(x): def is_installed(name): - mi = ts.dbMatch('name', name) + mi = rpm.TransactionSet().dbMatch('name', name) release = "" for h in mi: release = (h['release']).decode("utf-8") |