Install some required packages into the buildroot

This commit is contained in:
Jakub Kadlčík
2017-04-06 19:45:19 +02:00
parent 62d6930d92
commit 04270ebc7f

View File

@@ -54,6 +54,13 @@ class CoprModuleBuilder(GenericBuilder):
backend = "copr"
_build_lock = threading.Lock()
buildroot_packages = [
"unzip", "tar", "cpio", "gawk", "xz", "sed",
"findutils", "util-linux", "bash", "info", "gcc",
"grep", "redhat-rpm-config", "shadow-utils", "rpm-build",
"rpm", "coreutils", "fedora-modular-release", "diffutils",
"make", "patch", "shadow-utils",
]
@module_build_service.utils.validate_koji_tag('tag_name')
def __init__(self, owner, module, config, tag_name, components):
@@ -81,6 +88,7 @@ class CoprModuleBuilder(GenericBuilder):
"""
self.copr = self._get_copr_safe()
self._create_module_safe()
self._update_chroot(packages=self.buildroot_packages)
if self.copr and self.copr.projectname and self.copr.username:
self.__prep = True
log.info("%r buildroot sucessfully connected." % self)