From e610c465173f3d83dba437900dffcfaa4202d5cc Mon Sep 17 00:00:00 2001 From: William Douglas Date: Tue, 5 Jul 2022 12:01:09 -0700 Subject: [PATCH] Makefile.common: Add bump.list to make koji Add the ability for make koji to look a bump.list file in the package directory and make and koji all the packages listed in that file. This is useful for package's that depend on the updated package and should be rebuilt after the original package is. If for some reason this functionality isn't desired make koji-nowait will not look at the bump.list. Signed-off-by: William Douglas --- Makefile.common | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.common b/Makefile.common index 694f7ca..e0ee537 100644 --- a/Makefile.common +++ b/Makefile.common @@ -329,6 +329,12 @@ koji: prekoji-checks kojidef git tag $(SRPMVERS) git push origin $(CURRENT_BRANCH):main refs/tags/$(SRPMVERS) $(KOJI_CMD) build $$KOJI_NOWAIT $(KOJI_TAG) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS) + @if [ -f bump.list ]; then \ + $(MAKE) koji-waitrepo; \ + for bump_dep in $$(cat bump.list); do \ + (cd ../"$$bump_dep" && $(MAKE) bump && $(MAKE) koji-nowait) \ + done \ + fi #help rekoji: In case a previous 'make koji' failed, trigger a rebuild for the #help same tag.