fix get_requires to output the right thing. I'm a python legendgit diff woohoogit diff I'm the bestest python dude in the world....

This commit is contained in:
Richard Hughes 2007-11-07 21:59:42 +00:00
parent e7caa06a37
commit 218837ada1

View File

@ -511,7 +511,10 @@ class PackageKitYumBackend(PackageKitBaseBackend):
pkg,inst = self._findPackage(package)
pkgs = self.yumbase.rpmdb.searchRequires(pkg.name)
for pkg in pkgs:
self._show_package(pkg,inst)
if inst:
self._show_package(pkg,INFO_INSTALLED)
else:
self._show_package(pkg,INFO_AVAILABLE)
def _is_inst(self,pkg):
return self.yumbase.rpmdb.installed(po=pkg)