From 991f0a27c0f699717152c77f66b6792e954c7a8e Mon Sep 17 00:00:00 2001 From: guinux Date: Fri, 12 Apr 2013 15:46:43 +0200 Subject: [PATCH] fix a bug --- pamac-daemon.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pamac-daemon.py b/pamac-daemon.py index 9bfb0a6..b663b40 100755 --- a/pamac-daemon.py +++ b/pamac-daemon.py @@ -225,10 +225,11 @@ class PamacDBusService(dbus.service.Object): for pkg in pkg_list: if not pkg.name in _ignorepkgs: _ignorepkgs.append(pkg.name) - for pkgname in self.handle.ignorepkgs: - if pkgname in localpkgs.keys(): - if not pkgname in _ignorepkgs: - _ignorepkgs.append(pkgname) + for name in self.handle.ignorepkgs: + pkg = self.handle.get_localdb().get_pkg(name) + if pkg: + if not pkg.name in _ignorepkgs: + _ignorepkgs.append(pkg.name) if config.syncfirst: for name in config.syncfirst: pkg = self.handle.get_localdb().get_pkg(name)