rpm -- cleaning up conflicting stray files in %pre ineffective?
Bill Crawford
billcrawford1970 at gmail.com
Tue Aug 19 08:35:43 UTC 2008
2008/8/19 Martin Langhoff <martin.langhoff at 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).
More information about the fedora-devel-list
mailing list