On Thu, Feb 19, 2009 at 11:06 AM, Brendan Hide <brendan@swiftspirit.co.za> wrote:
Xavier Wrote:
So we don't even have extra decompression/recompression steps, there is no loss.
+ snprintf(command, PATH_MAX, "xdelta3 -d -R -c -s %s %s | gzip -n > %s", from, delta, to);
Sorry. I see the logic now only. :/ The md5s are originally generated after using "gzip -n" to do the compression and so Xavier is specifically using "gzip -n" to prevent generating a "different" md5sum after applying the delta.
Ah, no problem, to be honest I wasn't sure how to answer your previous mail : every statement you made seemed correct, only that you drew a wrong conclusion from them :) So yup, this will only work with packages generated from a patched makepkg, that uses gzip -n as compression. Or well, packages could also be decompressed and re-compressed with gzip -n.