Accepting request 1067638 from home:dziobian

- Precompile the python bytecode to avoid lingering files on package removal.

OBS-URL: https://build.opensuse.org/request/show/1067638
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=65
This commit is contained in:
Neal Gompa 2023-02-24 16:43:00 +00:00 committed by Git OBS Bridge
parent 7c60868bd6
commit 1ecda11337
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
-------------------------------------------------------------------
Fri Feb 24 16:13:36 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com>
- Precompile the python bytecode to avoid lingering files on package removal.
-------------------------------------------------------------------
Wed Feb 22 10:09:43 UTC 2023 - Alberto Planas Dominguez <aplanas@suse.com>

View File

@ -208,6 +208,11 @@ done
%fdupes %{buildroot}%{_prefix}
%fdupes build/doc/html
%if %{with python3}
%python_compileall
%fdupes %{buildroot}%{python3_sitearch}
%endif
%if %{with as_createrepo}
%pre
if [ -e %{_sysconfdir}/alternatives/createrepo ]; then