diff --git a/xsane.spec b/xsane.spec index e23df42..b49221b 100644 --- a/xsane.spec +++ b/xsane.spec @@ -3,7 +3,7 @@ Name: xsane Summary: An X Window System front-end for the SANE scanner interface. Version: 0.991 -Release: 2%{?dist} +Release: 3%{?dist} Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz Source1: xsane.desktop Source2: xsane.conf.in @@ -105,14 +105,21 @@ rm -rf %{buildroot} %config %{_sysconfdir}/gimp/plugins.d/xsane.conf %post gimp -test -x "%{_sbindir}/gimp-plugin-mgr" && %{_sbindir}/gimp-plugin-mgr --install xsane +if [ -x "%{_sbindir}/gimp-plugin-mgr"]; then + %{_sbindir}/gimp-plugin-mgr --install xsane +fi %preun gimp if [ $1 = 0 ]; then - test -x "%{_sbindir}/gimp-plugin-mgr" && %{_sbindir}/gimp-plugin-mgr --uninstall xsane + if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then + %{_sbindir}/gimp-plugin-mgr --uninstall xsane + fi fi %changelog +* Mon Oct 23 2006 Nils Philippsen - 0.991-3 +- really don't barf on missing gimp-plugin-mgr when updating (#208159) + * Mon Oct 02 2006 Nils Philippsen - 0.991-2 - don't barf on missing gimp-plugin-mgr when updating (#208159)