projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c9c21
)
po: send msgfmt output to /dev/null, else it creates messages.mo files
author
intrigeri
<intrigeri@boum.org>
Thu, 1 Jan 2009 22:33:16 +0000
(23:33 +0100)
committer
intrigeri
<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
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 236b5984fd2c75df6defe3ba1279e3878edbf2ca..d741a792819ba691538261d216aa8b49df9278d4 100644
(file)
--- 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()