summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qml/helpers.py4
-rw-r--r--qml/mageiawelcome.py5
-rw-r--r--qml/mw-ui.qml1
3 files changed, 4 insertions, 6 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")
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index e8662b8..c7a320d 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -104,9 +104,8 @@ class Launcher(QObject):
if cmd[0] == "gurpmi":
proc.wait()
print(proc.returncode)
- if (proc.returncode == 0):
- # Give the signal to reload the applist
- self.installed.emit()
+ # Give the signal to reload the applist
+ self.installed.emit()
class Norun(QObject):
def __init__(self):
diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml
index 996938c..30545c8 100644
--- a/qml/mw-ui.qml
+++ b/qml/mw-ui.qml
@@ -987,6 +987,7 @@ This is a background process and you will be able to use your computer normally
target: launch
onInstalled: {
// get the signal to reload the applist
+ console.log("Reload applications list")
itemModel.update_list(categoriesList.currentItem.myGroup)
}
}