mambabase.py: disable system update before installing selected package groups

This commit is contained in:
Silvan Calarco 2024-11-21 14:20:25 +01:00
parent 659bcf839c
commit aa63cd7367

View File

@ -134,20 +134,20 @@ class InstallThread(QtCore.QThread):
'details': result.stderr.decode('UTF-8').replace('\n', '<br/>')})
# Perform system update
self.updateProgressSignal.emit({ 'value': 10,
'label': _("Updating installed packages..."),
'details': _("Updating installed packages...")})
result = subprocess.run(['sudo', 'dnf', 'update', '-y'],
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': 10,
# 'label': _("Updating installed packages..."),
# 'details': _("Updating installed packages...")})
#
#result = subprocess.run(['sudo', 'dnf', 'update', '-y'],
# 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': 20 })