obsoletes cannot be matched in rpm-python interface

Bug #651473 reported by Jeff Johnson
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description


Revision history for this message
In , seth (seth-redhat-bugs) wrote :

Description of problem:
Debugging a yum depsolving problem I noticed I wasn't getting results back when I checked to see if an installed package obsoleted a package that was being proposed to be installed.

I started testing various tests and found that nothing is ever returned as matching obsoletes by name or complete.

Example code:
import rpm
ts = rpm.TransactionSet()
mi = ts.dbMatch(1090, 'mod_gzip')
for hdr in mi:
    print hdr['name']

on the system I have it should return 'httpd', at the least.

I also tested it using rpm.RPMTAG_OBSOLETES, rpm.RPMTAG_OBSOLETENAME to no avail.

Finally, I noticed some odd output in rpm -qa --obsoletes for example:

in any case - I'm pretty sure ts.dbMatch() used to work against obsoletes, but it doesn't seem to work anymore.

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

This will work in RHEL 6, but as it involves adding a new index, there's no way to make it reliably available in RHEL 5.

Jeff Johnson (n3npq)
tags: added: obsoletes rpmdb
Changed in fedora:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.