- support xz decoder helper script
authorMichael Schroeder <mls@suse.de>
Mon, 14 Jun 2010 15:10:58 +0000 (17:10 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 14 Jun 2010 15:10:58 +0000 (17:10 +0200)
init_buildsystem

index a0fbc87..c1c7e33 100755 (executable)
@@ -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 >/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