From 1f04d44d20b09c0523d44ddd9b255478b0bf1a6e Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 20 Apr 2021 15:39:51 -0600 Subject: [PATCH] use correct directory for collection tarball Related: rhbz#1961404 --- linux-system-roles.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-system-roles.spec b/linux-system-roles.spec index 22be3f0..d147049 100644 --- a/linux-system-roles.spec +++ b/linux-system-roles.spec @@ -450,10 +450,12 @@ done %if %{with collection_artifact} # Copy collection artifact to /usr/share/ansible/collections/ for collection-artifact +pushd .collections/ansible_collections/%{collection_namespace}/%{collection_name}/ if [ -f %{collection_namespace}-%{collection_name}-%{version}.tar.gz ]; then mv %{collection_namespace}-%{collection_name}-%{version}.tar.gz \ $RPM_BUILD_ROOT%{_datadir}/ansible/collections/ fi +popd %endif # generate the %files section in the file files_section.txt