Le lundi 17 janvier 2011, à 19:32 +0100, Cristian Morales Vega a écrit :
2011/1/17 Vincent Untz
: There's one issue with the macro, though: they wrongly assume that, on upgrade, %postun of the old package is called before %post of the new package. To be honest, it shouldn't matter in most cases, and the right fix would imply using a %posttrans instead... On the other hand, if we can use a mechanism to delay the call to gtk-update-icon-cache like you suggest in your later mail, that'd work fine.
True. Notice from http://fedoraproject.org/wiki/Packaging/ScriptletSnippets that Fedora also uses touch, not sure if it's really needed by something. Also, it's my understanding that the %postrans thing applies also to %desktop_database_post* and %mime_database_post*, but Fedora uses %post in this case (and removes the "if [ $1 -eq 0 ]" check from %postun). No idea why...
Yep, I know -- this issue is valid for all those macros. I'd like to hear what people think: are people happy if we add a %posttrans macro (a bit more annoying for developers), knowing that 11.5/12.0 won't need all those macros thanks to the rpm collection stuff? Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org