[Yum-devel] doRepoConfig
Tim Lauridsen
tim at rasmil.dk
Wed Aug 16 13:57:13 UTC 2006
Hi,
While doing some yumex hacking, if found out that each time i was
calling the install or update method
in YumBase, then the doRepoSetup is called.
The doRepoSetup calls the setup method of each YumRepository object
there is enabled.
The doRepoSetup should have some way to bail out if the repos already
have setup.
It could been solved by changing this piece of code (doRepoSetup).
<snip>
num = 1
for repo in repos:
repo.setup(self.conf.cache)
</snip>
could be.
<snip>
num = 1
for repo in repos:
if repo.repoXML:
continue
repo.setup(self.conf.cache)
<snip>
Tim
More information about the Yum-devel
mailing list