On Sat, 2007-10-06 at 16:46 +1000, Anthony Towns wrote: > On Wed, Oct 03, 2007 at 03:38:54PM +0300, Faidon Liambotis wrote: > > There's also --rsyncable which is appears mostly (if not only) on Debian > > and unfortunately can't be figured out from the headers. > > > Multipart gzips would also not work even though I haven't yet find any. > > Both these are cases where the .gz file is equivalent to cat'ing two > (or more) .gz files together, I would've thought, and should be able > to be dealt with as such, possibly just by checking for a header, or by > previously matching gzip output suddenly not matching anymore?
--rsyncable resets the compression stream; multipart is just catt'd gzips together. I think a heuristic like you suggest may work well, you could look for a gzip header when the content starts to differ to detect multipart ones quiet well. -Rob -- GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part