diff --git a/mambabase/mambabase.py b/mambabase/mambabase.py
index 1964e34..141b174 100755
--- a/mambabase/mambabase.py
+++ b/mambabase/mambabase.py
@@ -65,6 +65,19 @@ class PrepareThread(QtCore.QThread):
def run(self):
# Update packages list
+ self.updateProgressSignal.emit({ 'value': 5,
+ 'label': _("Updating packages list..."),
+ 'details': _("Updating packages list...")})
+ result = subprocess.run(['pkcon', 'refresh'],
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ if result.returncode == 0:
+ if result.stdout:
+ self.updateProgressSignal.emit({
+ 'details': result.stdout.decode('UTF-8').replace('\n', '
')})
+ else:
+ if result.stderr:
+ self.updateProgressSignal.emit({
+ 'details': result.stderr.decode('UTF-8').replace('\n', '
')})
self.updateProgressSignal.emit({ 'value': 5,
'label': _("Checking installed packages...")})
self.parent.selectGroupsPage.loadPkgGroups()