Red Hat Bugzilla – Bug 62200
RFE: Add option to %config(replace only if updating from >= 2.0)
Last modified: 2008-05-01 11:38:01 EDT
Description of Problem:
If a config file format has changed between version 1.0 and 2.0, but not
between 2.0 and 2.1, you usually want to replace the config file for anyone
updating from 1.0, but leave the old config file intact for someone updating
The current %config vs. %config(noreplace) doesn't allow to make a difference
between these cases.
Version-Release number of selected component (if applicable):
Wiring version comparison into %config adds unnecessary
complication to rpm for little gain. Use triggers (with
versions) to rearrange the existing mix of files if
you *really* need this functionality.