Bug 9740

Summary: "xdelta delta" returns exit status 1 even when successful
Product: Sisyphus Reporter: Sergey Vlasov <vsu>
Component: xdelta1Assignee: placeholder <placeholder>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description Sergey Vlasov 2006-06-28 20:39:33 MSD
xdelta delta возвращает код завершения 1 даже при успешном выполнении операции.
Steps to Reproduce:
$ rpm -q xdelta1
xdelta1-1.1.3-alt4

$ dd if=/dev/zero of=file1 bs=4k count=1
$ dd if=/dev/zero of=file2 bs=8k count=1

$ xdelta delta file1 file2 file2.xdelta; echo $?
1

При этом file2.xdelta создаётся и успешно применяется к file1 командой xdelta patch.
Comment 1 Dmitry V. Levin 2007-02-15 19:48:03 MSK
xdelta(1) says that
"The delta command exits with status 0 to indicate that no differences were
found, with status 1 to indicate that some differences were found, and with
status 2 to indicate an error of some kind.
Comment 2 Sergey Vlasov 2007-02-15 20:06:51 MSK
Весьма неочевидное поведение, причём до версии 1.1.4 оно не было документировано.
Comment 3 Dmitry V. Levin 2007-02-15 20:40:08 MSK
Видимо по аналогии с кодом возврата diff'а.