From 429a6aef6203cc005b28472aff283798b594b36e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 9 Nov 2022 10:26:00 +0000 Subject: [PATCH] pakfire: Remove confirm callback Pakfire should not ask any interactive questions. Signed-off-by: Michael Tremer --- src/python/__init__.py | 4 ---- src/python/tui.py | 9 --------- 2 files changed, 13 deletions(-) diff --git a/src/python/__init__.py b/src/python/__init__.py index 5dc1109..1b4c0d2 100644 --- a/src/python/__init__.py +++ b/src/python/__init__.py @@ -245,10 +245,6 @@ class Bricklayer(object): """ Calls Pakfire and has it load its configuration """ - kwargs |= { - "confirm_callback" : self.tui._confirm, - } - return pakfire.Pakfire(self.root, arch=self.arch, conf=self.pakfire_conf, **kwargs) diff --git a/src/python/tui.py b/src/python/tui.py index 8fd57df..3bb91aa 100644 --- a/src/python/tui.py +++ b/src/python/tui.py @@ -182,15 +182,6 @@ class Tui(object): return self.message(title, text, buttons=buttons, height=height, width=width, help=help) - def _confirm(self, message, question): - """ - Wrapper to confirm for Pakfire - """ - return self.confirm( - title=_("Attention"), - text="%s\n\n%s" % (message, question), - ) - def progress(self, title, text, max_value=None, height=None, width=60, help=None): return ProgressWindow(self, title, text, max_value=max_value, height=height, width=width, help=help) -- 2.47.2