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

Dominique Dumont dod at debian.org
Sun Feb 9 16:47:40 UTC 2014


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's ok.

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 this fine ?

All the best
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140209/cfa12363/attachment.sig>


More information about the pkg-perl-maintainers mailing list