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

Sébastien Chaumat Sebastien.Chaumat at cemagref.fr
Wed May 9 13:24:09 UTC 2007


 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.

Possible fix :

my $aptitude_out = `LANG=C aptitude -sy upgrade`;


More information about the Pkg-nagios-devel mailing list