don't barf on empty /etc/gimp/plugins.d (#202808)

This commit is contained in:
Nils Philippsen 2006-08-17 10:07:23 +00:00
parent 777a7cb6b1
commit ab6067657f
2 changed files with 4 additions and 3 deletions

View File

@ -23,12 +23,10 @@ install_uninstall () {
pushd "$GIMPPLUGINDIR/plug-ins" >&/dev/null
if [ "$plugins" == "*" ]; then
pushd "/etc/gimp/plugins.d" >&/dev/null
shopt -u nullglob
plugins=""
for file in *; do
plugins="$plugins ${file%.conf}"
done
shopt -s nullglob
popd >&/dev/null
fi

View File

@ -36,7 +36,7 @@ Version: 2.2.12
%define age 0
%define minorver 200
%define microver %(ver=%{version}; echo ${ver##*.*.})
Release: 4%{?dist}
Release: 5%{?dist}
Epoch: 2
License: GPL, LGPL
Group: Applications/Multimedia
@ -402,6 +402,9 @@ fi
%{_libdir}/pkgconfig/*
%changelog
* Thu Aug 17 2006 Nils Philippsen <nphilipp@redhat.com> - 2:2.2.12-5
- don't barf on empty /etc/gimp/plugins.d (#202808)
* Wed Aug 16 2006 Nils Philippsen <nphilipp@redhat.com> - 2:2.2.12-4
- revamp scheme for integrating external plugins (#202545)