def _on_config_file_conflict(self, transaction, old, new):
     dialog = AptConfigFileConflictDialog(old, new, self.window_main)
     res = dialog.run()
     dialog.hide()
     if res == Gtk.ResponseType.YES:
         transaction.resolve_config_file_conflict(old, "replace")
     else:
         transaction.resolve_config_file_conflict(old, "keep")
Example #2
0
 def _on_config_file_conflict(self, transaction, old, new):
     dialog = AptConfigFileConflictDialog(old, new, self.window_main)
     res = dialog.run()
     dialog.hide()
     if res == Gtk.ResponseType.YES:
         transaction.resolve_config_file_conflict(old, "replace")
     else:
         transaction.resolve_config_file_conflict(old, "keep")
Example #3
0
 def ask_config_file_conflict(self, old, new):
     dia = AptConfigFileConflictDialog(old, new)
     res = dia.run()
     dia.hide()
     dia.destroy()
     # send result to the daemon
     if res == Gtk.ResponseType.YES:
         return "replace"
     else:
         return "keep"
 def ask_config_file_conflict(self, old, new):
     dia = AptConfigFileConflictDialog(old, new)
     res = dia.run()
     dia.hide()
     dia.destroy()
     # send result to the daemon
     if res == Gtk.ResponseType.YES:
         return "replace"
     else:
         return "keep"