po: send msgfmt output to /dev/null, else it creates messages.mo files

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2009-01-01 23:33:16 +01:00
parent d0c9c21687
commit 949c4c0c3a
1 changed files with 1 additions and 1 deletions

View File

@ -972,7 +972,7 @@ sub isvalidpo ($) {
writefile(basename($infile), File::Spec->tmpdir, $content)
or return failure("failed to write $infile");
my $res = (system("msgfmt", "--check", $infile) == 0);
my $res = (system("msgfmt", "--check", $infile, "-o", "/dev/null") == 0);
# Unlinking should happen automatically, thanks to File::Temp,
# but it does not work here, probably because of the way writefile()