diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-26 10:05:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-26 10:33:49 +0100 |
commit | 947b3986d1f45c3e5432d57a48d8052db197f012 (patch) | |
tree | 7f99cb51b2d765a9d93a527091a288a5256cbfe3 /sysui/desktop | |
parent | bb66a2c3ee9807e79ba437c770559787abe61b9b (diff) |
fix "No template found for item" warning and make it an error
Change-Id: I75985c3f8821b3506e46eaf572c54828db97c964
Diffstat (limited to 'sysui/desktop')
-rw-r--r-- | sysui/desktop/share/makefile.mk | 4 | ||||
-rwxr-xr-x | sysui/desktop/share/translate.pl | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sysui/desktop/share/makefile.mk b/sysui/desktop/share/makefile.mk index 0a7c549b35db..84bf9952144c 100644 --- a/sysui/desktop/share/makefile.mk +++ b/sysui/desktop/share/makefile.mk @@ -72,12 +72,16 @@ MIMELIST = \ master-document \ oasis-text \ oasis-text-template \ + oasis-text-flat-xml \ oasis-spreadsheet \ oasis-spreadsheet-template \ + oasis-spreadsheet-flat-xml \ oasis-drawing \ oasis-drawing-template \ + oasis-drawing-flat-xml \ oasis-presentation \ oasis-presentation-template \ + oasis-presentation-flat-xml \ oasis-formula \ oasis-master-document \ oasis-database \ diff --git a/sysui/desktop/share/translate.pl b/sysui/desktop/share/translate.pl index c55ee25131d4..d32f99609b36 100755 --- a/sysui/desktop/share/translate.pl +++ b/sysui/desktop/share/translate.pl @@ -119,7 +119,7 @@ foreach $template (keys %templates) { # templates exist unless(open(TEMPLATE, $outfile)) { print STDERR "Warning: No template found for item $_: $outfile: $!\n"; - next; + exit -1; } # open output file |