http://bugzilla.novell.com/show_bug.cgi?id=520532 User mvyskocil@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=520532#c3 --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2009-07-10 04:58:19 MDT --- (In reply to comment #2)
I don't know what degree of control you have in determining what files to replace or add in, or not. If it is possible, then if either index.html or index.jsp exists, then neither should be replaced nor added into this directory.
I can do anything what rpm can :). With %config(noreplace) the file will never be replaced during update. And if there's a different file in updated package, the file with .rpmnew suffix will be inserted to webapps/ROOT. As tomcat webapps usually remains same and changes should be expected only in version upgrade (that means upgrade of openSUSE), this is a minor problem. I'll add the removal of all webapps/ROOT/*.rpmnew files into %post.
There is a preference order that the tomcat server will choose, in determining which one to serve, if both types exist, and it is a user configurable preference of the server...
I'm afraid that rpm does not have enough power to express it. I can instruct it to replace a file in upgrade, or not (if differs), but nothing like user configurable preferences of it. It could be written in %post script, but I don't want to write it, because those scripts tends to be buggy and fragile. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.