[Yum-devel] Fix bug in depsolver for missing requirements
Gijs Hollestelle
gijs at gewis.nl
Thu Apr 19 17:10:03 UTC 2007
Hi,
As i mentioned yesterday I saw a bug in the depsolver, where yum
wanted to updated my test package and readline at the sametime
eventhough the new version of test package explicitly required the old
version of readline.
I managed to trace it to the already_seen cache in depsolver.py it
turns out that when resolveDeps has missing requirements and restarts
the depsolving loop the packages that caused that missing requirements
are marked as already seen in the cache and their dependencies not
always resolved again, this causes problems at least in the case of an
upgrade but I can imagine that it could cause other problems as well.
I've included a small patch to fix this, it removes all packages
resulting in missing dependencies from the already seen cache before
starting the next round of depsolving.
Greets,
Gijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depsolve-missing.patch
Type: text/x-patch
Size: 1148 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070419/23ac9c05/attachment.bin
More information about the Yum-devel
mailing list