Re: config file name and format change

2021-02-07 Thread Dominique Dumont
On jeudi 4 février 2021 22:37:18 CET Christoph Biedl wrote: > Still in my experience it's > better if the maintainer spends time on a sound automated solution > than leaving figuring out the gory details to the users. This is one of the use cases I had in mind when I designed cme and Config::Mode

Re: config file name and format change

2021-02-06 Thread Marc Haber
On Thu, Feb 04, 2021 at 05:38:03PM +0100, wf...@niif.hu wrote: > Marc Haber writes: > > I would like to deliver a YAML config file with the package and have the > > old file still supported if an old file is still there (optimally > > printing a warning when starting up with old format). I would p

Re: config file name and format change

2021-02-06 Thread Marc Haber
On Thu, Feb 04, 2021 at 10:37:18PM +0100, Christoph Biedl wrote: > Marc Haber wrote... > > My idea would be to have two distinct systemd units, ser2net and > > ser2net-oldconfig, with appropriate ConditionPathExists directives. > > From my experience, that is a bad idea. While being easier right n

Re: config file name and format change

2021-02-04 Thread Geert Stappers
On Thu, Feb 04, 2021 at 10:37:18PM +0100, Christoph Biedl wrote: > Marc Haber wrote... > > > My idea would be to have two distinct systemd units, ser2net and > > ser2net-oldconfig, with appropriate ConditionPathExists directives. > > From my experience, that is a bad idea. While being easier righ

Re: config file name and format change

2021-02-04 Thread Christoph Biedl
Marc Haber wrote... > My idea would be to have two distinct systemd units, ser2net and > ser2net-oldconfig, with appropriate ConditionPathExists directives. From my experience, that is a bad idea. While being easier right now, this results in having to maintain two flavours for ... possibly forev

Re: config file name and format change

2021-02-04 Thread wferi
Marc Haber writes: > I would like to deliver a YAML config file with the package and have the > old file still supported if an old file is still there (optimally > printing a warning when starting up with old format). I would prefer to > avoid a wrapper script. > > My idea would be to have two di

Re: config file name and format change

2021-02-04 Thread Marc Haber
On Thu, Feb 04, 2021 at 03:00:56PM +0100, Geert Stappers wrote: > On Thu, Feb 04, 2021 at 02:46:58PM +0100, Marc Haber wrote: > > Is there something more elegant? > > Release note IIRCdebian.NEWS (please check filename) >From my point of view, that's clearly the simplest, but also the le

Re: config file name and format change

2021-02-04 Thread Geert Stappers
On Thu, Feb 04, 2021 at 02:46:58PM +0100, Marc Haber wrote: > Hi, > > My package ser2net has migrated from having its config in ser2net.conf > in their own format to ser2net.yaml. There is no converter tool provided > by upstream, and considering the package's popcon data with 187 > installations

config file name and format change

2021-02-04 Thread Marc Haber
Hi, My package ser2net has migrated from having its config in ser2net.conf in their own format to ser2net.yaml. There is no converter tool provided by upstream, and considering the package's popcon data with 187 installations I am not willing to spend the implementation and testing time with that.