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'])