Red Hat Bugzilla – Bug 247630
RFE: use results when satisfying build dependencies
Last modified: 2013-01-09 23:22:24 EST
Description of problem:
It would be nice if mock would automatically prefer packages in
/var/lib/mock/<name>/results over packages in the yum repositories. So you can
build multiple packages with one mock call (i.e. "mock foo.srpm bar.srpm") and
in case foo is a build dependency of bar the bar build will automatically use
the fresh foo packages to satisfy the build dependency.
If you want to do this, you can trivially do it yourself in the mock config. Set
up a 'local' repository with a file:// pointer at the results directory. Run
createrepo to create yum metadata.
Adding specific functionality for this to mock doesnt fit with the goals of
mock. This is the sort of task that would be better handled at the next level
(koji), if you want it done automatically.