Compare commits

...

2 Commits

2 changed files with 14 additions and 1 deletions

View File

@ -1 +1 @@
VERSION = 1.6.1
VERSION = 1.6.2

View File

@ -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', '<br/>')})
else:
if result.stderr:
self.updateProgressSignal.emit({
'details': result.stderr.decode('UTF-8').replace('\n', '<br/>')})
self.updateProgressSignal.emit({ 'value': 5,
'label': _("Checking installed packages...")})
self.parent.selectGroupsPage.loadPkgGroups()