| 1 |
When 'debdelta' is improved, features are added. In some cases, a |
| 2 |
delta created with a newer version of debdelta may not work with an |
| 3 |
older version of 'debpatch'. |
| 4 |
|
| 5 |
The feature that 'debdelta' or 'debdeltas' use when creating a delta |
| 6 |
depend on command line option, but also on the content of the deb |
| 7 |
files that are debdelta-ed. |
| 8 |
|
| 9 |
Whenever a feature is used in creating a delta, a special keywords of |
| 10 |
the form "needs-FEATURE" is added to the info (that is contained in |
| 11 |
the delta file, and can be browsed using 'debpatch --info'). An older |
| 12 |
version of debpatch will graciously exit if it finds in the info a |
| 13 |
feature that it does not recognize. |
| 14 |
|
| 15 |
To obtain backward compatibility, some features can be disabled |
| 16 |
by setting the commandline option --disable-feature |
| 17 |
|
| 18 |
Here is the listing of features, divided in sections |
| 19 |
|
| 20 |
--- delta format |
| 21 |
|
| 22 |
needs-old |
| 23 |
the delta was created with the option --needsold; such delta can |
| 24 |
only be applied if the old .deb is available, (but not using the |
| 25 |
installed version of the old deb). This is rarely used. |
| 26 |
|
| 27 |
--- binary delta backends |
| 28 |
|
| 29 |
needs-bsdiff |
| 30 |
this delta needs the program 'bsdiff' , |
| 31 |
that is available in the samename package; |
| 32 |
currently bsdiff is the default backend |
| 33 |
(see the option --delta-algo ). |
| 34 |
|
| 35 |
needs-xdelta |
| 36 |
this delta needs the program 'xdelta' |
| 37 |
that is available in the samename package; |
| 38 |
it is used if --delta-algo is set to xdelta |
| 39 |
|
| 40 |
needs-xdelta3 |
| 41 |
this delta needs the program 'xdelta3' |
| 42 |
that is available in the samename package; |
| 43 |
it is used if --delta-algo is set to xdelta3 |
| 44 |
|
| 45 |
The support for all 3 above was added before Debian/lenny. |
| 46 |
|
| 47 |
needs-xdelta3-fifo |
| 48 |
this delta needs xdelta3 at least version 0y , that supports reading |
| 49 |
the source thru a name FIFO. The support for this was added in |
| 50 |
'debdelta' 0.39, and will be available in Debian/stable with the |
| 51 |
release of Debian/squeeze. If you want to create deltas that are |
| 52 |
compatible with Debian/lenny, use '--disable-feature xdelta3-fifo'. |
| 53 |
|
| 54 |
---- compressor |
| 55 |
|
| 56 |
debdelta uses internally bzip2 and gzip in many places, |
| 57 |
and it depends on those, so there is no 'needs-bzip2' |
| 58 |
and 'needs-gzip'. For other compressors, |
| 59 |
things are as follows. |
| 60 |
|
| 61 |
needs-minibzip2 |
| 62 |
this delta needs the program 'minibzip2' |
| 63 |
that is available in the package 'debdelta' itself; |
| 64 |
it is used to recreate data.tar.bz2, (so that it |
| 65 |
is identical to the one created by dpkg-deb). |
| 66 |
The support for this was added before Debian/lenny. |
| 67 |
|
| 68 |
needs-lzma |
| 69 |
this delta needs the program 'lzma' that is available in the samename |
| 70 |
package. The support for this was added in 'debdelta' 0.31, and will |
| 71 |
be available in Debian/stable with the release of Debian/squeeze. |
| 72 |
'lzma' is needed if the new or old deb contains data.tar.lzma (but |
| 73 |
this is not yet allowed in repositories, as of Aug 09). Moreover, |
| 74 |
'lzma' may be used to compress the internal file 'patch.sh' in the |
| 75 |
delta file, if this provides a shorter file than 'bzip2' and |
| 76 |
'gzip'. This latter usage can be disabled by setting |
| 77 |
'--disable-feature lzma' (and such option provides compatibility with |
| 78 |
debdelta in Debian/lenny). |
| 79 |
|
| 80 |
needs-xz |
| 81 |
this delta needs the program 'xz' that is available in package 'xz-utils'. |
| 82 |
'xz' is needed if the new or old deb contains data.tar.xz , and this |
| 83 |
is allowed in the Debian archives since Jul 2011. |
| 84 |
Moreover, 'xz' may be used to compress the internal file 'patch.sh' in the |
| 85 |
delta file, if this provides a shorter file than 'bzip2' and |
| 86 |
'gzip' or 'lzma'. This latter usage can be disabled by setting |
| 87 |
'--disable-feature xz' (and such option provides compatibility with |
| 88 |
debdelta in Debian/squeeze). |
| 89 |
|