mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-11 00:55:00 +08:00
Do not try to rebuild the module-build-macros when it already exists in buildroot.
This commit is contained in:
@@ -637,8 +637,13 @@ chmod 644 %buildroot/%_rpmconfigdir/macros.d/macros.modules
|
|||||||
# * we do want only build explicitly tagged in the module tag (inherit: False)
|
# * we do want only build explicitly tagged in the module tag (inherit: False)
|
||||||
|
|
||||||
opts = {'latest': True, 'package': artifact_name, 'inherit': False}
|
opts = {'latest': True, 'package': artifact_name, 'inherit': False}
|
||||||
tagged = self.koji_session.listTagged(self.module_tag['name'], **opts)
|
|
||||||
|
|
||||||
|
if artifact_name == "module-build-macros":
|
||||||
|
tag = self.module_build_tag['name']
|
||||||
|
else:
|
||||||
|
tag = self.module_tag['name']
|
||||||
|
|
||||||
|
tagged = self.koji_session.listTagged(tag, **opts)
|
||||||
if tagged:
|
if tagged:
|
||||||
assert len(tagged) == 1, "Expected exactly one item in list. Got %s" % tagged
|
assert len(tagged) == 1, "Expected exactly one item in list. Got %s" % tagged
|
||||||
return tagged[0]
|
return tagged[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user