mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 18:59:30 +08:00
Merge #392 Fix another attribute error.
This commit is contained in:
@@ -649,7 +649,7 @@ chmod 644 %buildroot/%_rpmconfigdir/macros.d/macros.modules
|
||||
|
||||
build_opts = {"skip_tag": True,
|
||||
"mbs_artifact_name": artifact_name,
|
||||
"mbs_module_name": module_target}
|
||||
"mbs_module_target": module_target}
|
||||
|
||||
task_id = self.koji_session.build(source, module_target, build_opts,
|
||||
priority=self.build_priority)
|
||||
@@ -883,11 +883,13 @@ chmod 644 %buildroot/%_rpmconfigdir/macros.d/macros.modules
|
||||
continue
|
||||
if 'mbs_artifact_name' not in task_opts:
|
||||
task_opts['mbs_artifact_name'] = None
|
||||
if 'mbs_module_name' not in task_opts:
|
||||
task_opts['mbs_module_name'] = None
|
||||
if 'mbs_module_target' not in task_opts:
|
||||
task_opts['mbs_module_target'] = None
|
||||
for c in component_builds:
|
||||
# TODO: https://pagure.io/fm-orchestrator/issue/397
|
||||
# Subj: Do not mix target/tag when looking for component builds
|
||||
if (c.package == task_opts['mbs_artifact_name'] and
|
||||
c.tag == task_opts['mbs_module_name']):
|
||||
c.module_build.koji_tag == task_opts['mbs_module_target']):
|
||||
tasks.append(task)
|
||||
|
||||
return tasks
|
||||
|
||||
Reference in New Issue
Block a user