fix a bug

This commit is contained in:
guinux 2013-04-12 15:46:43 +02:00
parent 35adad6fe6
commit 991f0a27c0
1 changed files with 5 additions and 4 deletions

View File

@ -225,10 +225,11 @@ class PamacDBusService(dbus.service.Object):
for pkg in pkg_list: for pkg in pkg_list:
if not pkg.name in _ignorepkgs: if not pkg.name in _ignorepkgs:
_ignorepkgs.append(pkg.name) _ignorepkgs.append(pkg.name)
for pkgname in self.handle.ignorepkgs: for name in self.handle.ignorepkgs:
if pkgname in localpkgs.keys(): pkg = self.handle.get_localdb().get_pkg(name)
if not pkgname in _ignorepkgs: if pkg:
_ignorepkgs.append(pkgname) if not pkg.name in _ignorepkgs:
_ignorepkgs.append(pkg.name)
if config.syncfirst: if config.syncfirst:
for name in config.syncfirst: for name in config.syncfirst:
pkg = self.handle.get_localdb().get_pkg(name) pkg = self.handle.get_localdb().get_pkg(name)