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 :)
Thanks! jlc
On Sat, 2009-04-11 at 13:55 -0600, 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 :)
koji can do this, but koji is not a small solution.
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 :)
Thanks!
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 destination directory.
Works extremely well for me.
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 destination directory.
Works extremely well for me.
Share some love:)