mambabase.py: disable system update before installing selected package groups
This commit is contained in:
parent
659bcf839c
commit
aa63cd7367
@ -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 })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user