[CentOS] Mock Questions
Michael A. Peters
mpeters at mac.com
Sat Apr 11 23:38:01 UTC 2009
Joseph L. Casale wrote:
> Just started using mock to rebuild some srpms. I have two I want to
> rebuild, problem is the first creates a dep that is required by the second.
> Is there an automated way to populate an additional repo/cache that mock
> would look at when building the second so I could queue both?
> Although I haven't tried, I presume I could drop the output from the first
> build into a dir, createrepo it and add that into the config file then build
> the next package but that's not very slick :)
That's what I do.
It is slick.
I've got a shell script that takes a list of packages.
The script defines a destination directory.
Before it builds a package, it removes any repo stuff in that directory
and runs createrepo on it.
The destination directory is part of the mock configuration file.
It then builds the package and upon success moves the results to the
Works extremely well for me.
More information about the CentOS