From 673f43f89e99109256e508514ceda54d9db963d2 Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Wed, 14 Aug 2013 22:32:24 +0300 Subject: [PATCH] Be more specific when selecting source rpms for builddep When building binary rpms (in build action), due to not specific enough globbing, yum-builddep was run with all the files in corresponding source repository directory, including 'repodata' directory if there was one. To fix that, we use more specific glob in binary.mk template. Closes-Bug: #1212213 Change-Id: I84bcfa0a9883dbfbe966bd3890869b66f4ea5f57 --- conf/templates/packaging/makefiles/binary.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/templates/packaging/makefiles/binary.mk b/conf/templates/packaging/makefiles/binary.mk index fb5a550e..91b65d7a 100644 --- a/conf/templates/packaging/makefiles/binary.mk +++ b/conf/templates/packaging/makefiles/binary.mk @@ -20,7 +20,7 @@ all: $(MARKS) # package names are given, so, pass them one by one $(BUILDDEP_MARK): @echo "Installing build requirements for $(REPO_NAME)" - @for pkg in $(SRC_REPO_DIR)/*; do \ + @for pkg in $(SRC_REPO_DIR)/*.src.rpm ; do \ $(YUM_BUILDDEP) $(YUM_BUILDDEP_FLAGS) $$pkg; \ done &> $(LOGS_DIR)/yum-builddep-$(REPO_NAME).log @touch "$@"