]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
pakfire: Remove confirm callback
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Nov 2022 10:26:00 +0000 (10:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Nov 2022 10:26:00 +0000 (10:26 +0000)
Pakfire should not ask any interactive questions.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/__init__.py
src/python/tui.py

index 5dc1109e40f46299ecab019ed74057ac7d812184..1b4c0d2381f4050c06cc5a3332362df98daad493 100644 (file)
@@ -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)
 
index 8fd57df42b80ab282e57eaf043a6d061d27a663c..3bb91aaa8bfe330e345e8d285178f01946e1a529 100644 (file)
@@ -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)