From: intrigeri Date: Thu, 1 Jan 2009 22:33:16 +0000 (+0100) Subject: po: send msgfmt output to /dev/null, else it creates messages.mo files X-Git-Tag: 3.15~284 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/949c4c0c3a9d188e263068e675e0f2416f313c15 po: send msgfmt output to /dev/null, else it creates messages.mo files Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 236b5984f..d741a7928 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -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()