[Yum-devel] [PATCH] Bug in rpmUtils/transaction.py
David Lutterkort
dlutter at redhat.com
Thu Feb 9 17:52:21 UTC 2006
[I sent this a while ago, but it seems to have fallen through the crack.
Could somebody review and commit ? ]
Hi,
transaction.py has a small bug in TransactionWrapper.returnLeafNodes as
can be seen by comparing the output of 'rpm -q --whatrequires evolution' with that of
'package-cleanup --all --leaves | grep evolution'. The former shows that
evolution is not required by anything, the latter shows that
package-cleanup does not consider evolution a leaf package.
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/20060209/0fb5ac0a/attachment.bin
More information about the Yum-devel
mailing list