At the moment, this is mostly needed for depcheck. Run createrepo on a set of downloaded RPMs.
Yaml Example: createrepo: repodir={{workdir}}/repo
For the implementation, create a libtaskotron/directives/createrepo_directive.py file containing a class which extends BaseDirective.
The process(self, command, input_data, env_data) method will be the main entry point into the class. In this particular case, the following input will be presented:
command: '' input_data: {'repodir':'/path/to/some/dir'} env_data: {'workdir':'/path/to/runtime/tempdir'}
Given this data, the equivalent of 'cd /path/to/some/dir && createrepo .' should be run.
Another option would be to look into using mash instead of the createrepo command.
This ticket had assigned some Differential requests: D11
From what I understood about mash is that it would replace (at least partially) createrepo and koji directives. It requires configuration only through config files and I wasn't able to find much info about it. To me createrepo and koji seem therefore simpler to use. Are there any major mash advantages that I don't see?
Ah, I didn't realize that mash was configured through config files.
mash wouldn't require a subprocess call and I suspect that it's more flexible than createrepo but no, I don't know of any huge advantages.
Closed by commit rLTRNcbeecada350f.
Login to comment on this ticket.