Ejemplo n.º 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]))
Ejemplo n.º 2
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]))
Ejemplo n.º 3
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()
Ejemplo n.º 4
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()