From 9c875ce032aae77832b2665e32d0a15b11e2a9ab Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Wed, 5 Apr 2017 12:51:42 +0200 Subject: [PATCH] Do not try to rebuild the module-build-macros when it already exists in buildroot. --- module_build_service/builder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module_build_service/builder.py b/module_build_service/builder.py index 42230dcf..ca9cc647 100644 --- a/module_build_service/builder.py +++ b/module_build_service/builder.py @@ -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) 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: assert len(tagged) == 1, "Expected exactly one item in list. Got %s" % tagged return tagged[0]