fix a bug

This commit is contained in:
guinux 2013-04-12 15:46:43 +02:00
parent 35adad6fe6
commit 991f0a27c0

View File

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