From fd509a2295765980ea404e4f9ddd87de5b86f614 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Wed, 8 Aug 2018 19:10:47 -0700 Subject: [PATCH] Hardlink only the rpms created by Mock In case git repos cloned by autospec into results/ contain RPMs, we do not want to hardlink those files to rpms/. Fix the issue by limiting the find depth to 1 level so that the tooling only hardlinks rpms created by Mock. Signed-off-by: Patrick McCarty --- Makefile.shared | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.shared b/Makefile.shared index b82c0eb..b542c09 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -158,7 +158,7 @@ require-pkg-repo-dir: link-new-rpms: require-pkg-repo-dir mkdir -p ${PKG_REPO_DIR}/rpms rm -f ${PKG_REPO_DIR}/rpms/*.rpm - find ${PKG_REPO_DIR}/results -name '*.rpm' -exec ln {} ${PKG_REPO_DIR}/rpms/ \; + find ${PKG_REPO_DIR}/results -maxdepth 1 -name '*.rpm' -exec ln {} ${PKG_REPO_DIR}/rpms/ \; rm -f ${PKG_REPO_DIR}/rpms/*.src.rpm