From 949c4c0c3a9d188e263068e675e0f2416f313c15 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Thu, 1 Jan 2009 23:33:16 +0100 Subject: [PATCH] po: send msgfmt output to /dev/null, else it creates messages.mo files Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.44.0