Bug#353201: [Pkg-nagios-devel] Bug#353201: check_apt fail is locale is set

sean finney seanius at debian.org
Wed May 9 15:53:28 UTC 2007


hi sébastien,


On Wed, 2007-05-09 at 15:24 +0200, Sébastien Chaumat wrote:
> Hi,
> 
>  in check_apt :
> 
> my $aptitude_out = `aptitude -sy upgrade`;
> 
> $aptitude_out =~ /(\d+) packages upgraded/;
> 
> This will fail if the locale is set because the output message "packages
> upgraded" is valid for LANG=C.

i'm not sure where you got your version of check_apt, but ours is
written in C ... :)


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20070509/878e8322/attachment.pgp


More information about the Pkg-nagios-devel mailing list