"""
Calls Pakfire and has it load its configuration
"""
+ kwargs |= {
+ "confirm_callback" : self.tui._confirm,
+ }
+
return pakfire.Pakfire(self.root, arch=self.arch,
conf="/etc/pakfire/distros/ipfire3.conf", **kwargs)
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)