summaryrefslogtreecommitdiffstats
path: root/qml/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'qml/helpers.py')
-rw-r--r--qml/helpers.py4
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")