| |
@@ -64,14 +64,14 @@
|
| |
|
| |
# Internal check: Unmatched modules are not supposed to be listed in %%{pyproject_files}
|
| |
# We'll list them explicitly
|
| |
- grep -vF %{python3_sitearch}/ldif.py %{pyproject_files}
|
| |
- grep -vF %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.pyc %{pyproject_files}
|
| |
- grep -vF %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.opt-1.pyc %{pyproject_files}
|
| |
- grep -vF %{python3_sitearch}/slapdtest/ %{pyproject_files}
|
| |
+ ! grep -F %{python3_sitearch}/ldif.py %{pyproject_files}
|
| |
+ ! grep -F %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.pyc %{pyproject_files}
|
| |
+ ! grep -F %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.opt-1.pyc %{pyproject_files}
|
| |
+ ! grep -F %{python3_sitearch}/slapdtest %{pyproject_files}
|
| |
|
| |
# Internal check: Top level __pycache__ is never owned
|
| |
- grep -vE '/__pycache__$' %{pyproject_files}
|
| |
- grep -vE '/__pycache__/$' %{pyproject_files}
|
| |
+ ! grep -E '/__pycache__$' %{pyproject_files}
|
| |
+ ! grep -E '/__pycache__/$' %{pyproject_files}
|
| |
|
| |
|
| |
%files -n python3-ldap -f %{pyproject_files}
|
| |
Previously, we have used
grep -v
to assert something is not there.However, that doesn't work. See for example this file:
This gives a false sense of correctness, however it exits will 0 with anything:
Instead, we use
! grep
now:Additionally, remove a trailing slash from one of the checks to match both cases
(with or without the slash).