From aa63cd73674050b56306823824fb3b1f5ec29b8c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 21 Nov 2024 14:20:25 +0100 Subject: [PATCH] mambabase.py: disable system update before installing selected package groups --- mambabase/mambabase.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/mambabase/mambabase.py b/mambabase/mambabase.py index 141b174..866a7ca 100755 --- a/mambabase/mambabase.py +++ b/mambabase/mambabase.py @@ -134,20 +134,20 @@ class InstallThread(QtCore.QThread): 'details': result.stderr.decode('UTF-8').replace('\n', '
')}) # 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', '
')}) - else: - if result.stderr: - self.updateProgressSignal.emit({ - 'details': result.stderr.decode('UTF-8').replace('\n', '
')}) + #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', '
')}) + #else: + # if result.stderr: + # self.updateProgressSignal.emit({ + # 'details': result.stderr.decode('UTF-8').replace('\n', '
')}) self.updateProgressSignal.emit({ 'value': 20 })