Beispiel #1
0
 def _confirm_deps(self, trans):
     if [pkgs for pkgs in trans.dependencies if pkgs]:
         dia = AptConfirmDialog(trans, parent=self.parent)
         res = dia.run()
         dia.hide()
         if res != Gtk.ResponseType.OK:
             return
     self._run_transaction(trans)
Beispiel #2
0
 def apt_confirm_deps(self, trans):
     try:
         if [pkgs for pkgs in trans.dependencies if pkgs]:
             dia = AptConfirmDialog(trans, parent=self.main_window)
             res = dia.run()
             dia.hide()
             if res != Gtk.ResponseType.OK:
                 return
         self.apt_run_transaction(trans)
     except Exception as e:
         print(e)
Beispiel #3
0
 def apt_confirm_deps(self, trans):
     try:
         if [pkgs for pkgs in trans.dependencies if pkgs]:
             dia = AptConfirmDialog(trans, parent=self.main_window)
             res = dia.run()
             dia.hide()
             if res != Gtk.ResponseType.OK:
                 return
         self.apt_run_transaction(trans)
     except Exception as e:
         print(e)
Beispiel #4
0
 def _confirm_deps(self, trans):
     if [pkgs for pkgs in trans.dependencies if pkgs]:
         dia = AptConfirmDialog(trans, parent=self.parent)
         res = dia.run()
         dia.hide()
         if res != Gtk.ResponseType.OK:
             log.debug("Response is: %s" % res)
             if self.finish_handler:
                 log.debug("Finish_handler...")
                 self.finish_handler(trans, 0, self.data)
             return
     self._run_transaction(trans)
Beispiel #5
0
 def _confirm_deps(self, trans):
     if [pkgs for pkgs in trans.dependencies if pkgs]:
         dia = AptConfirmDialog(trans, parent=self.parent)
         res = dia.run()
         dia.hide()
         if res != Gtk.ResponseType.OK:
             log.debug("Response is: %s" % res)
             if self.finish_handler:
                 log.debug("Finish_handler...")
                 self.finish_handler(trans, 0, self.data)
             return
     self._run_transaction(trans)
Beispiel #6
0
 def _confirm_deps(self, trans):
     try:
         if [pkgs for pkgs in trans.dependencies if pkgs]:
             dia = AptConfirmDialog(trans, parent=self.parent_window)
             res = dia.run()
             dia.hide()
             if res != Gtk.ResponseType.OK:
                 if self.cancelled_callback is not None:
                     self.cancelled_callback()
                 return
         self._run_transaction(trans)
     except Exception as e:
         print(e)