littlef fixes

This commit is contained in:
guinux 2013-10-19 17:26:55 +02:00
parent 8f48135ef0
commit 29355f4c4c
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

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