[Yum-devel] speeding up yum was Re: [Bug 207] yumError.py patch submissio
David Farning
dfarning at sbcglobal.net
Thu Feb 26 17:32:56 UTC 2004
On Thu, 2004-02-26 at 10:53 -0500, seth vidal wrote:
> And that's not possible. You need to get to know the rpm transaction
> sets a lot better.
I don't disagree I need to learn more about the transaction set
> up2date and anaconda do the same thing.
Then, I think they are wrong;) I'll run some test but it really look
like.
<pseudo code>
build ts
addInstall pkg1 to ts
check ts
identify missing deps
find pkg2 that meets missing deps
addInstall pkg to ts
check ts
all ok
order ts
run ts to install pkgs
</pseudo code>
should work
Functionally
It appears that a ts is basically a view to the rpmdb
addInstall() parses the header and sticks it into the db
check() is a wrapper for a number of check functions that do not affect
the underlying db it just iterates through the each of the new requires,
conficts, provides lists for each header and returns detected errors.
addInstall pkg1
check
adInstall pkg2
check
should be the same as
addInstall pkg1
adInstall pkg2
check
I'll try to prove this tonight.
Dave Farning.
More information about the Yum-devel
mailing list