Displaying 4 results from an estimated 4 matches for "setting2".
Did you mean:
setting
2011 May 05
3
Alter a line in a file.
Hi all R users
Ive got a file that contains diffrent settings in the manor of:
setting1="value1"
setting2="value2"
setting3="value3"
setting4="value4"
.
.
.
What I want to do is open the file and change the value of a specific
setting
like wanna change setting4="value4" -> setting4="value5" and then save the
file again.
setting1="value1"...
2015 Jun 28
2
Old and new package version numbers during RPM update
...the format of the config file is error-prone.
>
> why doesn't the config file have the version in it ? not having that
> makes your whole system error prone.
Perhaps I wasn't clear. Version 1 of the package uses a config file that
looks like this:
system {
setting1 value1;
setting2 value2;
}
interfaces {
iface1;
iface2;
}
Version 2 of the package has switched to a YAML-based syntax, so the
config file needs to look like this:
system:
setting1: value1
setting2: value2
So, I need to be able to program the RPM so that when upgrading from 1.x
to 2.x, it triggers the...
2015 Jun 28
0
Old and new package version numbers during RPM update
...e wrote:
>
>> why doesn't the config file have the version in it ? not having that
>> makes your whole system error prone.
> Perhaps I wasn't clear. Version 1 of the package uses a config file that
> looks like this:
>
> system {
> setting1 value1;
> setting2 value2;
> }
>
> interfaces {
> iface1;
> iface2;
> }
>
>
> Version 2 of the package has switched to a YAML-based syntax, so the
> config file needs to look like this:
>
> system:
> setting1: value1
> setting2: value2
>
>
> So, I need to...
2015 Jun 28
5
Old and new package version numbers during RPM update
On 28/06/15 02:17, Joseph L. Casale wrote:
> Your script within the rpm should have the logic. Clearly if
> you know how to update it, you know how to identify if it
> needs updating.
Thanks Joseph. I am aware of this option, but it would be only a last
resort, because checking the format of the config file is error-prone.
I would prefer RPM to tell me the old and new version numbers,