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

Bug 348719

Summary: Before and After remove script for EAPI.
Product: Portage Development Reporter: dE <de.techno>
Component: Core - ConfigurationAssignee: PMS/EAPI <pms>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description dE 2010-12-14 14:21:00 UTC
At times a package wants to do a few things before and after it's removal (adding/removing groups, removing config files etc...) for this we should have functions in the EAPI that will be executed before and after removal.

Reproducible: Always

Steps to Reproduce:
Comment 1 Zac Medico gentoo-dev 2010-12-14 14:41:09 UTC
Wouldn't the existing pkg_prerm and pkg_postrm functions be suitable for this? The REPLACED_BY_VERSION variable in EAPI 4 could also be helpful (see bug 273646).
Comment 2 dE 2010-12-14 15:10:13 UTC
Unfortunately I want aware of that (the pages were newly added?)

So this one needs to be closed.