From af02ec0850ea059c1c2e25a1bf123f5b90087575 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 14 Jun 2010 17:10:58 +0200 Subject: [PATCH] - support xz decoder helper script --- init_buildsystem | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init_buildsystem b/init_buildsystem index a0fbc87..c1c7e33 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -141,6 +141,11 @@ preinstall() test -f "$BUILD_DIR/lzmadec.sh" && PAYLOADDECOMPRESS="bash $BUILD_DIR/lzmadec.sh" fi fi + if test "$PAYLOADDECOMPRESS" = "xz -d" ; then + if ! xz /dev/null 2>&1 ; then + test -f "$BUILD_DIR/xzdec.sh" && PAYLOADDECOMPRESS="bash $BUILD_DIR/xzdec.sh" + fi + fi if test "$PAYLOADDECOMPRESS" = cat ; then rpm2cpio "$BUILD_ROOT/.init_b_cache/rpms/$1.rpm" | $CPIO else -- 2.7.4