#1 Build srpm in a chroot
Closed Opened by pingou.

This would need two steps:

  • mock --init,
  • mock --buildsrpm --define "%_disable_source_fetch 0" ...

and would make things a little safer


:thumbsup:

Is there a preferred way to call mock from python, or shall I just use subprocess?

Proposal at: https://pagure.io/fedora-ci/simple-koji-ci/pull-request/2

Note that, you need to have network enabled ina mock config under use for --define "%_disable_source_fetch 0" to work. (Might be the case already, so just noting).

and would make things a little safer

Actually, this is still not safe as long as spectool is being used (which calls rpmbuild as well) but if run in a separate dedicated VM, it's ok.

and would make things a little safer

Actually, this is still not safe as long as spectool is being used (which calls rpmbuild as well) but if run in a separate dedicated VM, it's ok.

Yeah, it doesn't :(

Fixed in https://pagure.io/fedora-ci/simple-koji-ci/pull-request/2 :)

Thanks @clime for the help fixing it!

Metadata Update from @pingou:
- Issue status updated to: Closed (was: Open)

Metadata