Sounds like you may be experiencing an issue with rpm itself.
On Wed, May 14, 2014 at 9:51 AM, Wilkins, Brian <[email protected]> wrote: > Right, I am not seeing that happening. I am seeing that the new init > script is not created with an .rpmsav. The local modifications stays. > > > > Brian > > > > *From:* Brett Okken [mailto:[email protected]] > *Sent:* Wednesday, May 14, 2014 10:49 AM > > *To:* [email protected] > *Subject:* Re: [mojo-user] Proper Configuration for init scripts with > rpm-maven-plugin > > > > The behavior of rpm when files are marked as "simple" configuration should > result in the provided file being put in place and, if the existing file > had been modified, the modified version is kept with a .rpmsav extension. > > > > On Wed, May 14, 2014 at 9:41 AM, Wilkins, Brian <[email protected]> > wrote: > > Correct, that is what I am referring to. > > > > I read this: “If present or populated with the value true, the files in > this mapping are marked as configuration files. These files get special > treatment during package installation to ensure that local changes to the > configuration are not lost.” > > > > If you modify say an initscript and then install the RPM update, it leaves > the local copy in place, but does not provide a .rpmnew or .rpmsav. This is > if configuration is set to *true*. > > > > According to here ( > https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s03.html), > if in the RPM it is set to %config(noreplace), then it will “copy the new > file with an extra file-name extension of .rpmnew”. > > > > So, if I want to maintain local modifications and have it create a .rpmnew > – I should use <configuration>noreplace</configuration>? > > > > Brian > > > > *From:* Brett Okken [mailto:[email protected]] > *Sent:* Wednesday, May 14, 2014 10:33 AM > *To:* [email protected] > *Subject:* Re: [mojo-user] Proper Configuration for init scripts with > rpm-maven-plugin > > > > If your question is about identifying files (regardless of use) as > configuration files, take a look at the configuration[1] option. This can > be used for any sort of file (properties, xml, scripts, etc.). > > [1] - > http://mojo.codehaus.org/rpm-maven-plugin/map-params.html#configuration > > > > On Wed, May 14, 2014 at 9:03 AM, Wilkins, Brian <[email protected]> > wrote: > > What is the proper configuration to ensure that either the generated SPEC > file provides the ability to either create a .rpmnew or .rpmsav file for a > given init script - or overwrites the existing init script? > > Thanks > > Brian Wilkins > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > >
