From 85150c38025e25cc9dcfab1351d9c536da6aa08f Mon Sep 17 00:00:00 2001 From: Ben Konrath Date: Jan 29 2007 22:34:29 +0000 Subject: - Check for features directory in sdk postun script. - Resolves: #224588. --- diff --git a/eclipse.spec b/eclipse.spec index 186e022..bf758e1 100644 --- a/eclipse.spec +++ b/eclipse.spec @@ -19,7 +19,7 @@ Epoch: 1 Summary: An open, extensible IDE Name: eclipse Version: %{eclipse_majmin}.%{eclipse_micro} -Release: 32%{?dist} +Release: 33%{?dist} License: Eclipse Public License Group: Text Editors/Integrated Development Environments (IDE) URL: http://www.eclipse.org/ @@ -1380,7 +1380,11 @@ fi # Only set the product back to platform.ide if the sdk is actually removed for # this arch. This SDKDIR check is to deal with the ordering of new %%post # before old %%postun -SDKDIR=$(ls %{_libdir}/%{name}/features | grep "org\.eclipse\.sdk_") +if [ -d /usr/lib/eclipse/features]; then + SDKDIR=$(ls %{_libdir}/%{name}/features | grep "org\.eclipse\.sdk_") +else + SDKDIR="" +fi if [ -z "$SDKDIR" -a -f %{_libdir}/%{name}/configuration/config.ini ]; then sed --in-place "s/[#]*eclipse.product=.*/eclipse.product=org.eclipse.platform.ide/" \ %{_libdir}/%{name}/configuration/config.ini @@ -1728,6 +1732,10 @@ fi %{_libdir}/%{name}/plugins/org.eclipse.sdk_* %changelog +* Mon Jan 29 2007 Ben Konrath 3.2.1-33 +- Check for features directory in sdk postun script. +- Resolves: #224588. + * Fri Jan 26 2007 Ben Konrath 3.2.1-32 - Fix bug in ecj [] patch.