kiwi: option for not using buildroot repo

Related: https://pagure.io/koji/issue/4062
This commit is contained in:
Tomas Kopecek 2024-03-25 11:33:41 +01:00
parent 694ac41483
commit b13d481d56
3 changed files with 10 additions and 3 deletions

View file

@ -351,8 +351,7 @@ class KiwiCreateImageTask(BaseBuildTask):
# user repos
repos = self.opts.get('repos', [])
# buildroot repo if user repos not defined
if repos == []:
if self.opts.get('use_buildroot_repo', True):
path_info = koji.PathInfo(topdir=self.options.topurl)
repopath = path_info.repo(repo_info['id'], target_info['build_tag_name'])
baseurl = '%s/%s' % (repopath, arch)