Compare commits
2 Commits
e9e9d48e79
...
ab05098cd7
Author | SHA1 | Date | |
---|---|---|---|
ab05098cd7 | |||
bb57dc7095 |
@ -65,6 +65,19 @@ class PrepareThread(QtCore.QThread):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# Update packages list
|
# 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,
|
self.updateProgressSignal.emit({ 'value': 5,
|
||||||
'label': _("Checking installed packages...")})
|
'label': _("Checking installed packages...")})
|
||||||
self.parent.selectGroupsPage.loadPkgGroups()
|
self.parent.selectGroupsPage.loadPkgGroups()
|
||||||
|
Loading…
Reference in New Issue
Block a user