Build Tools package

class rebasehelper.plugins.build_tools.BuildTemporaryEnvironment(sources, patches, spec, results_dir)[source]

Class representing temporary environment.

TEMPDIR_RESULTS = 'TEMPDIR_RESULTS'
TEMPDIR_SOURCES = 'TEMPDIR_SOURCES'
TEMPDIR_SPEC = 'TEMPDIR_SPEC'
TEMPDIR_SPECS = 'TEMPDIR_SPECS'
class rebasehelper.plugins.build_tools.MockTemporaryEnvironment(sources, patches, spec, results_dir)[source]

Class representing temporary environment for MockBuildTool.

class rebasehelper.plugins.build_tools.RpmbuildTemporaryEnvironment(sources, patches, spec, results_dir)[source]

Class representing temporary environment for RpmbuildBuildTool.

TEMPDIR_BUILD = 'TEMPDIR_BUILD'
TEMPDIR_BUILDROOT = 'TEMPDIR_BUILDROOT'
TEMPDIR_RPMBUILD = 'TEMPDIR_RPMBUILD'
TEMPDIR_RPMS = 'TEMPDIR_RPMS'
TEMPDIR_SRPMS = 'TEMPDIR_SRPMS'
rebasehelper.plugins.build_tools.check_mock_privileges() → bool[source]
rebasehelper.plugins.build_tools.get_mock_logfile_path(ret, results_dir, tmp_path=None)[source]

Get path to logfile containing the error message

Parameters:
  • ret – return code from mock
  • results_dir – directory where logs will be stored
  • tmp_path – temporary directory where logs are during build
Returns: