#212189 Xdelta returns 0 or 1 for success

Package:
xdelta
Source:
xdelta
Description:
A diff utility which works with binary files
Submitter:
Robert de Bath
Date:
2015-11-02 14:09:09 UTC
Severity:
normal
#212189#5
Date:
2003-09-22 14:06:23 UTC
From:
To:
The xdelta manual page needs documentation about the completely
non-standard exit codes it uses when creating a delta, vis:

  0  = Delta created, no difference
  1  = Delta created, differences found
  else error.

I had to check the source and found a line like:
  return control_offset != header_offset;

What's more, this doesn't seem to correctly detect identical files either,
I couldn't get it to return zero.

#212189#10
Date:
2015-11-02 13:59:41 UTC
From:
To:
this its a workaround fix in main upstream, please import:

https://github.com/jmacd/xdelta/commit/f60f342df2fa3379b572e3854d8439a2fa0b5375

solves the 1 or 0 exit status