Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 166695

Summary: Clean out stale files from the stage-target dir before capturing the stage
Product: Gentoo Hosted Projects Reporter: Christian Heim (RETIRED) <phreak>
Component: CatalystAssignee: Gentoo Catalyst Developers <catalyst>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: catalyst-2.0.2-clean-stale-files.patch

Description Christian Heim (RETIRED) gentoo-dev 2007-02-13 18:28:28 UTC
Currently, when catalyst installs packages modifying /etc/group, /etc/passwd or /etc/shadow, the old file is getting copied as $name-.

This files are still present when the stage is being captured and thus being present in the final stage.

Find attached a patch against catalyst-2.0.2 to clean those old files.
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-02-13 18:28:52 UTC
Created attachment 110086 [details, diff]
catalyst-2.0.2-clean-stale-files.patch
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2007-03-06 17:27:48 UTC
OK.  I've added this to subversion now...
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-03-20 17:17:24 UTC
This is fixed in 2.0.3 which should be hitting the tree shortly.