From: Joey Hess Date: Tue, 30 Dec 2014 19:51:50 +0000 (-0400) Subject: po: If msgmerge falls over on a problem po file, print a warning message, but don... X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/f88e109bec4df70875a72f5044b8940eefbdd26e po: If msgmerge falls over on a problem po file, print a warning message, but don't let this problem crash ikiwiki entirely. --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 6107a4a22..6b55ee351 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -993,10 +993,9 @@ sub refreshpofiles ($@) { } if (-e $pofile) { - system("msgmerge", "--previous", "-q", "-U", "--backup=none", $pofile, $potfile) == 0 - or error("po(refreshpofiles) ". - sprintf(gettext("failed to update %s"), - $pofile)); + if (! (system("msgmerge", "--previous", "-q", "-U", "--backup=none", $pofile, $potfile) == 0)) { + print STDERR ("po(refreshpofiles) ". sprintf(gettext("failed to update %s"), $pofile)); + } } else { File::Copy::syscopy($potfile,$pofile) diff --git a/debian/changelog b/debian/changelog index 2a3f729c5..b8a74935f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,10 @@ ikiwiki (3.20141017) UNRELEASED; urgency=medium * build: in po/Makefile, use the same $(MAKE) as the rest of the build. Thanks, ttw + [ Joey Hess ] + * po: If msgmerge falls over on a problem po file, print a warning + message, but don't let this problem crash ikiwiki entirely. + -- Joey Hess Mon, 20 Oct 2014 12:04:49 -0400 ikiwiki (3.20141016) unstable; urgency=medium