Bug#736972: libconfig-model-dpkg-perl: Exit status of 'cme check dpkg' command.

2014-02-12 Thread Dominique Dumont
On Sunday 09 February 2014 21:10:35 you wrote: > IMHO: Yes, it's may be solution. But I think this solution it's no good. > Who will to know about this parameter to this script and who will be use > it? It's not usual. I'll document the exit status of cme mentioning this option. > Exit status

Bug#736972: libconfig-model-dpkg-perl: Exit status of 'cme check dpkg' command.

2014-02-09 Thread Oleg Gashev
On 02/09/2014 04:47 PM, Dominique Dumont wrote: Unfortunately, controlling exit status with Exception::Class in a portable way turns out to be rather difficult. The easy way out is to add a '-strict' option to cme. When -strict is set, cme will exit 1 when warnings are found during a check. Is

Bug#736972: Re: Bug#736972: libconfig-model-dpkg-perl: Exit status of 'cme check dpkg' command.

2014-02-09 Thread Dominique Dumont
On Tuesday 04 February 2014 20:02:08 you wrote: > > So how about, cme returns: > > - 0 if no errors and no warnings > > - 1 if warnings > > - 2 if errors (configuration) > > - 3 for other errors (bad option, model error or whatever) > > > > Does that make sense ? > > > > All the best > > Yes, it

Bug#736972: libconfig-model-dpkg-perl: Exit status of 'cme check dpkg' command.

2014-02-04 Thread Oleg Gashev
On 02/04/2014 06:56 PM, Dominique Dumont wrote: On Tuesday 28 January 2014 15:38:31 Oleg Gashev wrote: to automate packages inspection it'd be helpful if 'cmd check dpkg' command return proper exit status. So if successful (cme return zero warnings and errors) the exit status should be 0, if not

Bug#736972: libconfig-model-dpkg-perl: Exit status of 'cme check dpkg' command.

2014-02-04 Thread Dominique Dumont
On Tuesday 28 January 2014 15:38:31 Oleg Gashev wrote: > to automate packages inspection it'd be helpful if 'cmd check dpkg' command > return proper exit status. So if successful (cme return zero warnings and > errors) the exit status should be 0, if not successful (warnings or error > more than z

Bug#736972: libconfig-model-dpkg-perl: Exit status of 'cme check dpkg' command.

2014-01-28 Thread Oleg Gashev
Package: libconfig-model-dpkg-perl Version: 2.043 Severity: wishlist Dear Maintainer, to automate packages inspection it'd be helpful if 'cmd check dpkg' command return proper exit status. So if successful (cme return zero warnings and errors) the exit status should be 0, if not successful (warni