[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpm -- cleaning up conflicting stray files in %pre ineffective?



2008/8/19 Martin Langhoff <martin langhoff gmail com>:

> I suspect that at install/upgrade time rpm computes the conflicts
> _before_ %pre runs.

Well, it has to, doesn't it? It needs to be able to bail out before
changing anything.

Your options look to me like:

 - make a new package that has files in /here.go.files/ but does not
symlink them, and have that remove the symlinks in %post

- remove the symlinks and rename the .rpmnew files in %post

- declare the symlinks as being config (and they should become
.rpmsave, rather than your new ones becoming .rpmnew, I think;
hopefully someone will correct me if I'm wrong).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]