IS_UPGRADE and IS_REPLACE are not properly reset at runtime, causing failures with binpkgs. Moreover, the way webapp-config is called in webapp_pkg_prerm() looks wrong, either webapp-config syntax changed or it was broken since day 0. Please review the eclass patch attached. Reproducible: Always
Created attachment 279603 [details, diff] webapp.eclass patch
Please also see: http://bugs.sabayon.org/show_bug.cgi?id=2536 Should be trivial, too.
The eclass patch looks fine to me. Feel free to apply it. :)
Thanks, committed.