![](https://seccdn.libravatar.org/avatar/5f188c5fb664dc110d55f04cd59a6e74.jpg?s=120&d=mm&r=g)
Le jeudi 25 octobre 2012 à 17:07 +0200, Michael Schroeder a écrit :
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.
Which is how my initial script was written, thanks to you ;) But we are still left with a "non rpm" issue with /var/lock.. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org