use correct directory for collection tarball

Related: rhbz#1961404
This commit is contained in:
Rich Megginson 2021-04-20 15:39:51 -06:00 committed by Noriko Hosoi
parent fb7d76631e
commit 1f04d44d20

View File

@ -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