From a3215ac3c4ed87f0a9df87d2ae69f17f5af4663d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 6 Apr 2022 19:06:54 +0200 Subject: [PATCH] Don't use `! ...` as a check See https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/TFQGD7CSTD5WVKVT3WDIGF5D6DID5NK6/ --- python-tomli.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-tomli.spec b/python-tomli.spec index 1c02aff..bcc2cfc 100644 --- a/python-tomli.spec +++ b/python-tomli.spec @@ -78,7 +78,7 @@ echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files} # assert the properly built package has no runtime requires # if it does, we need to change the bootstrap 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 %endif