backend.mockremote.__init__

class backend.mockremote.__init__.MockRemote(builder_host, job, logger, repos=None, opts=None)[source]
check()[source]

Checks that MockRemote configuration and environment are correct.

Raises MockRemoteError:
 when configuration is wrong or some expected resource is unavailable
chroot_dir[source]
pkg[source]
add_pubkey()[source]

Adds pubkey.gpg with public key to chroot_dir using copr_username and copr_projectname from self.job.

sign_built_packages()[source]
Sign built rpms
using copr_username and copr_projectname from self.job by means of obs-sign. If user builds doesn’t have a key pair at sign service, it would be created through copr-keygen
Parameters:
  • chroot_dir – Directory with rpms to be signed
  • pkg – path to the source package
do_createrepo()[source]
on_success_build()[source]
prepare_build_dir()[source]
build_pkg_and_process_results()[source]
Returns:

dict with build_details

Raises:
  • MockRemoteError – Something happened with build itself
  • VmError – Something happened with builder VM
mark_dir_with_build_id()[source]
Places “build.info” which contains job build_id
into the directory with downloaded files.

Previous topic

backend.daemons.vm_master

Next topic

backend.mockremote.builder

This Page