This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 224588 - Error in post uninstall script
Error in post uninstall script
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: eclipse (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ben Konrath
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-26 10:39 EST by Phil Knirsch
Modified: 2015-03-04 20:18 EST (History)
1 user (show)

See Also:
Fixed In Version: 3.2.1-33.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-01-29 22:40:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Phil Knirsch 2007-01-26 10:39:46 EST
During an automated install/deinstall check the following error has happened:

ERROR: Output running post uninstall script for package
eclipse-sdk-1:3.2.1-30.fc7.i386
ls: cannot access /usr/lib/eclipse/features: No such file or directory

Checking whether the directory exists before doing an ls on it should fix the
problem.

postuninstall scriptlet (using /bin/sh):
if [ -x /usr/bin/rebuild-gcj-db ]
then
  /usr/bin/rebuild-gcj-db
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
if [ -d /usr/lib/eclipse/features]; then
  SDKDIR=$(ls /usr/lib/eclipse/features | grep "org\.eclipse\.sdk_")
else
  SDKDIR=""
fi
if [ -z "$SDKDIR" -a -f /usr/lib/eclipse/configuration/config.ini ]; then
  sed --in-place
"s/[#]*eclipse.product=.*/eclipse.product=org.eclipse.platform.ide/" \
    /usr/lib/eclipse/configuration/config.ini
fi
Comment 1 Ben Konrath 2007-01-26 13:24:46 EST
Looks good. Feel free to commit.
Comment 2 Ben Konrath 2007-01-29 22:40:30 EST
This is fixed in rawhide (3.2.1-33.fc7). Thanks.
Comment 3 Ben Konrath 2007-02-21 16:54:50 EST
A fix for this will also be in the upcoming 3.2.2-1.fc6 update. Thanks.

Note You need to log in before you can comment on or make changes to this bug.