From 29355f4c4c57dd77c7f8af41b323ab200240d20e Mon Sep 17 00:00:00 2001 From: guinux Date: Sat, 19 Oct 2013 17:26:55 +0200 Subject: [PATCH] littlef fixes --- pamac-daemon.py | 2 +- pamac-manager.py | 2 +- pamac-tray.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pamac-daemon.py b/pamac-daemon.py index 15edb21..07370ac 100755 --- a/pamac-daemon.py +++ b/pamac-daemon.py @@ -86,7 +86,7 @@ class PamacDBusService(dbus.service.Object): def EmitLogWarning(self, message): pass - @dbus.service.signal('org.manjaro.pamac') + @dbus.service.signal('org.manjaro.pamac', signature = 'u') def EmitAvailableUpdates(self, updates_nb): pass diff --git a/pamac-manager.py b/pamac-manager.py index bf70e2f..1efb83b 100755 --- a/pamac-manager.py +++ b/pamac-manager.py @@ -280,7 +280,7 @@ def set_deps_list(pkg, style): if pkg.optdepends: optdeps = [] for optdep in pkg.optdepends: - if transaction.get_localpkg(optdep.split(':')[0]): + if pyalpm.find_satisfier(transaction.localdb.pkgcache, optdep.split(':')[0]): optdeps.append(optdep+' ['+_('Installed')+']') else: optdeps.append(optdep) diff --git a/pamac-tray.py b/pamac-tray.py index eb3c56e..d3bfca6 100644 --- a/pamac-tray.py +++ b/pamac-tray.py @@ -43,6 +43,8 @@ class Tray: self.statusIcon.connect('popup-menu', self.popup_menu_cb, self.menu) self.statusIcon.connect('activate', self.activate_cb) + self.update_icon(icon, info) + def execute_update(self, widget, event, data = None): Popen(['/usr/bin/pamac-updater'])