Bug 9740 - "xdelta delta" returns exit status 1 even when successful
Summary: "xdelta delta" returns exit status 1 even when successful
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: xdelta1 (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 20:39 MSD by Sergey Vlasov
Modified: 2007-02-15 20:40 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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'а.