]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po: send msgfmt output to /dev/null, else it creates messages.mo files
authorintrigeri <intrigeri@boum.org>
Thu, 1 Jan 2009 22:33:16 +0000 (23:33 +0100)
committerintrigeri <intrigeri@boum.org>
Thu, 1 Jan 2009 22:33:16 +0000 (23:33 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index 236b5984fd2c75df6defe3ba1279e3878edbf2ca..d741a792819ba691538261d216aa8b49df9278d4 100644 (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()