[CentOS-devel] mock using yum .repo file?

Mon Jul 25 03:27:05 UTC 2011
seth vidal <skvidal at fedoraproject.org>

On Sun, 2011-07-24 at 23:37 +0200, Ljubomir Ljubojevic wrote:

> You have mistaken createrepo with yum repomd data. Createrepo is for 
> creating actual repository (I use mrepo).
> Yum data (repomd, repoview) is different story. Every repository stores 
> data in xml file packed with tar. They are unpacked in memory and xml 
> data is parsed and put into internal database (and cache). It is very 
> much possible that yum internally (for cache) uses sqlite database, 
> haven't had the need to research. Using "yum -C <command>" will use yum 
> cache rather then download repomd data again.

 If you wanna pop by #fedora-devel on freenode tomorrow the mock, yum
and createrepo(clark, james, me, tim, nils, panu and others) maintainers
and developers tend to all be in there often.

the long and short is - yum plugins don't work inside mock overly well
and they are tricky to get in there.

You could also pop by #yum on freenode, you'll find a lot of similarly
good folks around who can help.

finally, just to dispel any confusion:
yum uses sqlitedbs first if they are available.
createrepo generates both the xml and the sqlitedbs, by default
repomd.xml is just used for the index to the repo.

good luck with your building process.