The attached patch tries new style compression first and runs old style compression if the command returned an error code (happens if you run an old lzma with the new arguments)
Tested on new-style lzma only (as I lack a build environment with old lzma), but I tested that the old lzma returns with an error code.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de