Bug#275959: dia --export-to-format= does nothing, hides errors

Tommi Virtanen Tommi Virtanen <tv@debian.org>, 275959@bugs.debian.org
Mon, 11 Oct 2004 11:51:12 +0300


Package: dia
Version: 0.94.0-2

Dia's --export-to-format= option does nothing; it still tries to deduce
the format from the filename.

Also, even if dia aborts with error, it exits with status 0. This is
bad.


$ dia --export-to-format=png --export=overview.dia.png.tmp overview.dia

** (dia-python:22618): WARNING **: No attribute type ((nil)) or no 
data((nil)) in this attribute

** (dia-python:22618): WARNING **: Can't color_convert in 
non-interactive app (w/o color_init())
[... repeats a lot, I will file a separate bug on this ...]
** (dia-python:22618): WARNING **: Can't color_convert in 
non-interactive app (w/o color_init())

** (dia-python:22618): WARNING **: Can't color_convert in 
non-interactive app (w/o color_init())
Warning: Could not save file:
overview.dia.png.tmp
Image type 'tmp' is not supported
overview.dia --> overview.dia.png.tmp
$ echo $?
0
$ ls -l overview.dia.png.tmp
-rw-r--r--  1 tv tv 0 Oct 11 11:45 overview.dia.png.tmp