summaryrefslogtreecommitdiff
path: root/sysui/desktop/share
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-26 10:05:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-26 10:33:49 +0100
commit947b3986d1f45c3e5432d57a48d8052db197f012 (patch)
tree7f99cb51b2d765a9d93a527091a288a5256cbfe3 /sysui/desktop/share
parentbb66a2c3ee9807e79ba437c770559787abe61b9b (diff)
fix "No template found for item" warning and make it an error
Change-Id: I75985c3f8821b3506e46eaf572c54828db97c964
Diffstat (limited to 'sysui/desktop/share')
-rw-r--r--sysui/desktop/share/makefile.mk4
-rwxr-xr-xsysui/desktop/share/translate.pl2
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