[packagekit] yum requires problem
Richard Hughes
hughsient at gmail.com
Wed Nov 7 12:13:29 PST 2007
I've found the problem with the yum GetRequires:
def get_requires(self,package,recursive):
'''
Print a list of requires for a given package
'''
self.allow_interrupt(True)
self.percentage(None)
name = package.split(';')[0]
pkg,inst = self._findPackage(package)
pkgs = self.yumbase.rpmdb.searchRequires(pkg.name)
for pkg in pkgs:
self._show_package(pkg,inst)
Gives:
[hughsie at hughsie-laptop helpers]$ sudo ./get-requires.py "hal;0.5.10-1.fc8;i386;installed" true
allow-interrupt true
no-percentage-updates
package True gdm;1:2.20.1-5.fc8;i386;installed The GNOME Display Manager
package True gparted;0.3.3-13.fc8;i386;installed Gnome Partition Editor
i.e. True should be "installed" (INFO_INSTALLED) I'm guessing. Yum
legends to the rescue?
Richard.
More information about the PackageKit
mailing list