Example #1
0
def handle_reply(reply):
    if transaction.to_build:
        transaction.build_next()
    elif reply:
        transaction.ProgressCloseButton.set_visible(True)
        transaction.action_icon.set_from_icon_name('dialog-information',
                                                   Gtk.IconSize.BUTTON)
        transaction.progress_label.set_text(str(reply))
        transaction.progress_bar.set_text('')
        end_iter = transaction.progress_buffer.get_end_iter()
        transaction.progress_buffer.insert(end_iter, str(reply))
    else:
        transaction.get_updates()
    transaction.Release()
    transaction.get_handle()
    transaction.mark_needed_pkgs_as_dep()
    transaction.to_add.clear()
    transaction.to_remove.clear()
    transaction.to_update.clear()
    transaction.to_load.clear()
    ManagerValidButton.set_sensitive(False)
    ManagerCancelButton.set_sensitive(False)
    global search_dict
    global groups_dict
    global states_dict
    global repos_dict
    search_dict = {}
    groups_dict = {}
    states_dict = {}
    repos_dict = {}
    if current_filter[0]:
        refresh_packages_list(current_filter[0](current_filter[1]))
Example #2
0
def handle_error(error):
    ManagerWindow.get_window().set_cursor(None)
    while Gtk.events_pending():
        Gtk.main_iteration()
    if error:
        if not 'DBus.Error.NoReply' in str(error):
            print(error)
            transaction.ErrorDialog.format_secondary_text(str(error))
            response = transaction.ErrorDialog.run()
            if response:
                transaction.ErrorDialog.hide()
                transaction.ProgressWindow.hide()
    transaction.progress_buffer.delete(
        transaction.progress_buffer.get_start_iter(),
        transaction.progress_buffer.get_end_iter())
    transaction.Release()
    transaction.get_handle()
    transaction.mark_needed_pkgs_as_dep()
    transaction.to_add.clear()
    transaction.to_remove.clear()
    transaction.to_update.clear()
    transaction.to_load.clear()
    transaction.to_build.clear()
    ManagerValidButton.set_sensitive(False)
    ManagerCancelButton.set_sensitive(False)
Example #3
0
def handle_reply(reply):
	if transaction.to_build:
		transaction.build_next() 
	elif reply:
		transaction.ProgressCloseButton.set_visible(True)
		transaction.action_icon.set_from_icon_name('dialog-information', Gtk.IconSize.BUTTON)
		transaction.progress_label.set_text(str(reply))
		transaction.progress_bar.set_text('')
		end_iter = transaction.progress_buffer.get_end_iter()
		transaction.progress_buffer.insert(end_iter, str(reply))
	else:
		transaction.get_updates()
	transaction.Release()
	transaction.get_handle()
	transaction.mark_needed_pkgs_as_dep()
	transaction.to_add.clear()
	transaction.to_remove.clear()
	transaction.to_update.clear()
	transaction.to_load.clear()
	ManagerValidButton.set_sensitive(False)
	ManagerCancelButton.set_sensitive(False)
	global search_dict
	global groups_dict
	global states_dict
	global repos_dict
	search_dict = {}
	groups_dict = {}
	states_dict = {}
	repos_dict = {}
	if current_filter[0]:
		refresh_packages_list(current_filter[0](current_filter[1]))
Example #4
0
def handle_error(error):
	UpdaterWindow.get_window().set_cursor(None)
	while Gtk.events_pending():
		Gtk.main_iteration()
	if error:
		if not 'DBus.Error.NoReply' in str(error):
			print(error)
			transaction.ErrorDialog.format_secondary_text(error)
			response = transaction.ErrorDialog.run()
			if response:
				transaction.ErrorDialog.hide()
				transaction.ProgressWindow.hide()
	transaction.get_handle()
	transaction.mark_needed_pkgs_as_dep()
Example #5
0
def handle_error(error):
    UpdaterWindow.get_window().set_cursor(None)
    while Gtk.events_pending():
        Gtk.main_iteration()
    if error:
        if not 'DBus.Error.NoReply' in str(error):
            print(error)
            transaction.ErrorDialog.format_secondary_text(error)
            response = transaction.ErrorDialog.run()
            if response:
                transaction.ErrorDialog.hide()
                transaction.ProgressWindow.hide()
    transaction.get_handle()
    transaction.mark_needed_pkgs_as_dep()
Example #6
0
def handle_reply(reply):
	while Gtk.events_pending():
		Gtk.main_iteration()
	if transaction.to_build:
		transaction.build_next() 
	elif reply:
		transaction.Release()
		transaction.ProgressCloseButton.set_visible(True)
		transaction.action_icon.set_from_icon_name('dialog-information', Gtk.IconSize.BUTTON)
		transaction.progress_label.set_text(str(reply))
		transaction.progress_bar.set_text('')
		end_iter = transaction.progress_buffer.get_end_iter()
		transaction.progress_buffer.insert(end_iter, str(reply))
		transaction.get_handle()
	else:
		UpdaterWindow.get_window().set_cursor(None)
		transaction.get_handle()
		transaction.get_updates()
	transaction.mark_needed_pkgs_as_dep()
Example #7
0
def handle_reply(reply):
    while Gtk.events_pending():
        Gtk.main_iteration()
    if transaction.to_build:
        transaction.build_next()
    elif reply:
        transaction.Release()
        transaction.ProgressCloseButton.set_visible(True)
        transaction.action_icon.set_from_icon_name('dialog-information',
                                                   Gtk.IconSize.BUTTON)
        transaction.progress_label.set_text(str(reply))
        transaction.progress_bar.set_text('')
        end_iter = transaction.progress_buffer.get_end_iter()
        transaction.progress_buffer.insert(end_iter, str(reply))
        transaction.get_handle()
    else:
        UpdaterWindow.get_window().set_cursor(None)
        transaction.get_handle()
        transaction.get_updates()
    transaction.mark_needed_pkgs_as_dep()
Example #8
0
def handle_error(error):
	ManagerWindow.get_window().set_cursor(None)
	while Gtk.events_pending():
		Gtk.main_iteration()
	if error:
		if not 'DBus.Error.NoReply' in str(error):
			print(error)
			transaction.ErrorDialog.format_secondary_text(str(error))
			response = transaction.ErrorDialog.run()
			if response:
				transaction.ErrorDialog.hide()
				transaction.ProgressWindow.hide()
	transaction.progress_buffer.delete(transaction.progress_buffer.get_start_iter(),transaction.progress_buffer.get_end_iter())
	transaction.Release()
	transaction.get_handle()
	transaction.mark_needed_pkgs_as_dep()
	transaction.to_add.clear()
	transaction.to_remove.clear()
	transaction.to_update.clear()
	transaction.to_load.clear()
	transaction.to_build.clear()
	ManagerValidButton.set_sensitive(False)
	ManagerCancelButton.set_sensitive(False)