Package: ufraw
Version: 0.13-1+b1
Severity: normal

Hi,

I am calling ufraw-batch from a python script, and I'd like to
test the return value of the program to determine if an error
occurred. But it seems that ufraw-batch always returns 0, even
if an error occurred. This makes it impossible for my script to
test for the occurrence of an error in ufraw-batch.

Expected behavior: ufraw-batch should return a non-zero value
when an error occurs.

Here's some examples. (In bash, the command echo $? shows the
return value of the most recent command.)

This one is a normal, successful run, and ufraw-batch
returns 0 as it should.
[EMAIL PROTECTED]:~$ ufraw-batch CRW_6903.CRW 
ufraw-batch: loaded CRW_6903.CRW
ufraw-batch: saved /home/jdietrch/CRW_6903.ppm
[EMAIL PROTECTED]:~$ echo $?
0

These next two show ufraw-batch reporting errors, but the return
value is still 0.
[EMAIL PROTECTED]:~$ ufraw-batch testbatch.png 
ufraw-batch: testbatch.png: unsupported file format.
[EMAIL PROTECTED]:~$ echo $?
0
[EMAIL PROTECTED]:~$ ufraw-batch CRW_6903.CRW --output=/tmp/CRW_6903.ppm
ufraw-batch: loaded CRW_6903.CRW
Error creating file '/tmp/CRW_6903.ppm'.
No space left on device
[EMAIL PROTECTED]:~$ echo $?
0

Let me know if I can provide any further information.

Thank you,
James Dietrich
-- 
  
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - IMAP accessible web-mail




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to