- Check for features directory in sdk postun script.

- Resolves: #224588.
This commit is contained in:
Ben Konrath 2007-01-29 22:34:29 +00:00
parent 3d9c177958
commit 85150c3802
1 changed files with 10 additions and 2 deletions

View File

@ -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 <bkonrath@redhat.com> 3.2.1-33
- Check for features directory in sdk postun script.
- Resolves: #224588.
* Fri Jan 26 2007 Ben Konrath <bkonrath@redhat.com> 3.2.1-32
- Fix bug in ecj [] patch.