From 18b0395f1f5bd52066065a5a7417645e1534e043 Mon Sep 17 00:00:00 2001 From: guinux Date: Wed, 23 Oct 2013 16:42:52 +0200 Subject: [PATCH] another fix --- pamac-manager.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pamac-manager.py b/pamac-manager.py index 1efb83b..df8baba 100755 --- a/pamac-manager.py +++ b/pamac-manager.py @@ -163,13 +163,21 @@ def get_state_list(state): global states_dict if state == _('To install'): liststore = Gtk.ListStore(object) - for pkg in transaction.to_add: - liststore.append([pkg]) + for name in transaction.to_add: + pkg = transaction.get_localpkg(name) + if pkg: + liststore.append([pkg]) + else: + pkg = transaction.get_syncpkg(name) + if pkg: + liststore.append([pkg]) return liststore elif state == _('To remove'): liststore = Gtk.ListStore(object) - for pkg in transaction.to_remove: - liststore.append([pkg]) + for name in transaction.to_remove: + pkg = transaction.get_localpkg(name) + if pkg: + liststore.append([pkg]) return liststore elif state in states_dict.keys(): return states_dict[state]