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/>')}) 'details': result.stderr.decode('UTF-8').replace('\n', '<br/>')})
# Perform system update # Perform system update
self.updateProgressSignal.emit({ 'value': 10, #self.updateProgressSignal.emit({ 'value': 10,
'label': _("Updating installed packages..."), # 'label': _("Updating installed packages..."),
'details': _("Updating installed packages...")}) # 'details': _("Updating installed packages...")})
#
result = subprocess.run(['sudo', 'dnf', 'update', '-y'], #result = subprocess.run(['sudo', 'dnf', 'update', '-y'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE) # stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if result.returncode == 0: #if result.returncode == 0:
if result.stdout: # if result.stdout:
self.updateProgressSignal.emit({ # self.updateProgressSignal.emit({
'details': result.stdout.decode('UTF-8').replace('\n', '<br/>')}) # 'details': result.stdout.decode('UTF-8').replace('\n', '<br/>')})
else: #else:
if result.stderr: # if result.stderr:
self.updateProgressSignal.emit({ # self.updateProgressSignal.emit({
'details': result.stderr.decode('UTF-8').replace('\n', '<br/>')}) # 'details': result.stderr.decode('UTF-8').replace('\n', '<br/>')})
self.updateProgressSignal.emit({ 'value': 20 }) self.updateProgressSignal.emit({ 'value': 20 })