On Sunday 04 February 2007, Daniel Black wrote: > Added draft of eclass as savedconfig.eclass. Hope it includes all suggested > technical options.
save_config should only be called from pkg_preinst or src_install, not both if this were a src_install function, then you wouldnt need to worry about any of the extraneous crap like ROOT/PORTAGE_CONFIGROOT/etc... > On my todo list is: > - to move away from cp --parents with something BSD friendly. the portability eclass has a cp func to address this > Could consider if anyone is interested: > - USE=SAVEDCONFIG capitalised so that it looks and is assumed to be > dominate. > - pkg_postinst - ewarn "have modified the saved configuration of this > package. I assume you have set your USE flags to include the appropriate > dependencies and/or emerged the dependencies already." > - implement warn_config (though I don't think its really needed) i wouldnt bother with any of this -mike
pgpWJ3jPE8byd.pgp
Description: PGP signature