Accepting request 871547 from home:mgorse:branches:graphics

- Recurse directories when looking for python plugins
  (boo#1180362).

OBS-URL: https://build.opensuse.org/request/show/871547
OBS-URL: https://build.opensuse.org/package/show/graphics/gimp?expand=0&rev=52
This commit is contained in:
2021-02-22 08:49:09 +00:00
committed by Git OBS Bridge
parent 0f9b473af3
commit 99375f96c4
2 changed files with 7 additions and 1 deletions

View File

@@ -275,7 +275,7 @@ rm %{buildroot}%{_libdir}/gimp/2.0/*/*.*a
echo "%%defattr(-,root,root)" >plugins.list
echo "%%defattr(-,root,root)" >plugins-python.list
for PLUGIN in %{buildroot}%{_libdir}/gimp/2.0/plug-ins/* ; do
if grep -q '^#!.*python' $PLUGIN ; then
if grep -qr '^#!.*python' $PLUGIN ; then
echo "${PLUGIN#%{buildroot}}" >>plugins-python.list
else
echo "${PLUGIN#%{buildroot}}" >>plugins.list