backend.mockremote.__init__

class backend.mockremote.__init__.MockRemote(builder_host, job, logger, 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

property chroot_dir
property pkg
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()[source]
compress_live_log(job)[source]
reattach_to_pkg_build()[source]

:raises VmError, BuilderError

check_build_success()[source]

Raise MockRemoteError if builder claims that the build failed.

download_results()[source]
mark_dir_with_build_id()[source]
Places “build.info” which contains job build_id

into the directory with downloaded files.