xz: Fix interaction between preset and custom filter chains.
commit45edf2966fc9a4d2eae8f84b2fa027fb4fa1df8b
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 21 Jun 2013 18:50:26 +0000 (21 21:50 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 26 Jun 2013 07:54:18 +0000 (26 10:54 +0300)
tree0425b0713325ebb6a1b46e622bc026f93f377b38
parentb065984e5a9272eb50bc0c6d3731e6199c0ae8a8
xz: Fix interaction between preset and custom filter chains.

There was somewhat illogical behavior when --extreme was
specified and mixed with custom filter chains.

Before this commit, "xz -9 --lzma2 -e" was equivalent
to "xz --lzma2". After it is equivalent to "xz -6e"
(all earlier preset options get forgotten when a custom
filter chain is specified and the default preset is 6
to which -e is applied). I find this less illogical.

This also affects the meaning of "xz -9e --lzma2 -7".
Earlier it was equivalent to "xz -7e" (the -e specified
before a custom filter chain wasn't forgotten). Now it
is "xz -7". Note that "xz -7e" still is the same as "xz -e7".

Hopefully very few cared about this in the first place,
so pretty much no one should even notice this change.

Thanks to Conley Moorhous.
src/xz/coder.c