![](https://seccdn.libravatar.org/avatar/bc67c2666cfb0f5c7770293291610cc9.jpg?s=120&d=mm&r=g)
On Thu, Oct 25, 2012 at 04:44:21PM +0200, Henne Vogelsang wrote:
Hey,
On 25.10.2012 16:30, Stephan Kulow wrote:
The problem is moving from /var/run as directory to /var/run as symlink. rpm just can't do that.
No really true. If you can modify the updated package you should be able to use the pretrans trigger.
%pretrans mv dir dir.rpmsave ln -s dir.rpmsave dir
Argh, not again. Folks, pretrans triggers *must* be lua scripts, otherwise you can never install a new system. Also, pretrans triggers are called *before* checking for file conflicts, so they should be as lightweight as possible. Running a 'mv' command is not lightweight. (And 'mv' is also not availible in a fresh installation.) The correct way to do this is to symlink in the other direction in lua and cleanup in %pre or %post. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org