Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2345

Summary: Inappropriate "cannot remove DIR - directory not empty"
Product: [Retired] Red Hat Linux Reporter: jamie
Component: rpmAssignee: Jay Turner <jturner>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-11 15:35:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jamie 1999-04-23 16:43:43 UTC
I encounted this when upgrading from gimp-1.0.1-2.i386.rpm
to gimp-1.0.4-3.i386.rpm:

cannot remove /usr/lib/gimp - directory not empty

I get it from time to time with other packages too.
The message is inappropriate because /usr/lib/gimp is
actually used by the new package.  However it is not
explicitly listed by the package: the directory
/usr/lib/gimp/1.0 is listed, and /usr/lib/gimp is implied by
that.

I suspect the previous version did have /usr/lib/gimp in the
directory list, hence the message.

Suggestion: Don't try to delete directories whose existence
is implied by other directories from another package.  One
way would be to add entries for those implied directories to
the database, with a flag to say they're implied.

Comment 1 Jeff Johnson 1999-05-11 15:35:59 UTC
Rpm cannot remove directories that are not empty while attempting to
remove a package. Furthermore, the bug is often in the already
released package so we cannot always repackage to work around
the problem.