Don't use ! ...
as a check
See https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/TFQGD7CSTD5WVKVT3WDIGF5D6DID5NK6/
This commit is contained in:
parent
47595e37db
commit
a3215ac3c4
@ -78,7 +78,7 @@ echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
|
|||||||
# assert the properly built package has no runtime requires
|
# assert the properly built package has no runtime requires
|
||||||
# if it does, we need to change the bootstrap metadata
|
# if it does, we need to change the bootstrap metadata
|
||||||
test -f %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA
|
test -f %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA
|
||||||
! grep '^Requires-Dist:' %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA
|
grep '^Requires-Dist:' %{buildroot}%{python3_sitelib}/tomli-%{version}.dist-info/METADATA && exit 1 || true
|
||||||
%pytest
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user