[Yum-devel] Bug in rpmUtils/transaction.py

David Lutterkort dlutter at redhat.com
Thu Jan 26 19:10:16 UTC 2006


Hi,

transaction.py has a small bug in TransactionWrapper.returnLeafNodes as
can be seen by comparing the output of 'rpm -qR evolution' with that of
'package-cleanup --all --leaves | grep evolution'. 

The problem is that packages that require things that they also provide
are not correctly recognized as leaf packages. The attached patch fixes
that; it is a little complicated by dealing with the following
situation: package A provides P and requires P, package B requires P -
in that situation, A is not a leaf package. To deal with this correctly,
the patch builds a dictionary from all the REQUIRE_NAMES to the _set_ of
packages that have this requirement (instead of a random element of that
set).

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: transaction.patch
Type: text/x-patch
Size: 1165 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20060126/3a56e801/attachment.bin 


More information about the Yum-devel mailing list