ctron / rpm-builder

Maven RPM builder plugin
https://ctron.github.io/rpm-builder
Eclipse Public License 2.0
56 stars 32 forks source link

Ability to allow configuration changes on local files e.g. %config(noreplace) #7

Closed skarzhevskyy closed 6 years ago

skarzhevskyy commented 7 years ago

I believe handling RMP updated would be much easier with standard %config(noreplace)

e.g. modified configuration files would remain on disk as is and edited in distribution file from the update in new file .rpmnew. (as it is right now with %config edited config file will end-up in .rpmsave)


Suggestion to have the parameter extended to minimize upgrade issues.

<configuration>true</configuration>
<configuration>false</configuration>
<configuration>noreplace</configuration>

as done in here: http://www.mojohaus.org/rpm-maven-plugin/map-params.html

ctron commented 7 years ago

Good point. So the first thing to do is to figure out how this will be represented in the binary rpm file.

drecaise commented 6 years ago

@ctron This is still open but I've just found out this has been implemented already. Shouldn't you close it? ( And out of context but a big thank you for your plugin! )

For who wants to try the syntax isn't as above you need two tags: ``

true
<noreplace>true</noreplace>

``

ctron commented 6 years ago

@drecaise You are right :grin: … There even is documentation for that: https://ctron.github.io/rpm-builder/payload_information.html … at least, a bit.

Thanks for reminding me!