aboutsummaryrefslogtreecommitdiff
path: root/Functions/RPM
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gmail.com>2017-01-22 23:26:24 -0200
committerLucas C. Villa Real <lucasvr@gmail.com>2017-01-22 23:26:24 -0200
commit9ce5c999d21cd9021f7b7686f7d721e4b3ad07fa (patch)
treeaeb0e2ddd71fb13923d5ce58884bb5a47e692708 /Functions/RPM
parentd958f49de43724274fe725e780ddfc089d01eb99 (diff)
downloadThirdPartyInstallers-9ce5c999d21cd9021f7b7686f7d721e4b3ad07fa.tar.xz
Add support for RPM files with a CPIO payload compressed with LZMA.
Diffstat (limited to 'Functions/RPM')
-rw-r--r--Functions/RPM5
1 files changed, 5 insertions, 0 deletions
diff --git a/Functions/RPM b/Functions/RPM
index 7b4d599..635f643 100644
--- a/Functions/RPM
+++ b/Functions/RPM
@@ -81,6 +81,11 @@ function thirdparty_uncompress() {
Log_Normal "Decompressing $payload_compressor payload."
xz -d "$cpiofile"
cpiofile=$(basename "$rpmfile").cpio
+ elif [ "$payload_compressor" = "lzma" ]
+ then
+ Log_Normal "Decompressing $payload_compressor payload."
+ lzma -d "$cpiofile"
+ cpiofile=$(basename "$rpmfile").cpio
fi
Log_Normal "Extracting CPIO archive."