tAdd support for pixz in zlibs/imaging. - libdevuansdk - common library for devuan's simple distro kits
 (HTM) git clone https://git.parazyd.org/libdevuansdk
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3eee81ee507abc096ffc19b9c75da29113ad21a9
 (DIR) parent c1c6fc8c0686ecdb30da61775f9015798133fb15
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Tue, 26 Feb 2019 01:04:49 +0100
       
       Add support for pixz in zlibs/imaging.
       
       Diffstat:
         M zlibs/imaging                       |      11 +++++++++--
       
       1 file changed, 9 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/zlibs/imaging b/zlibs/imaging
       t@@ -179,9 +179,16 @@ image_pack_dist() {
                pushd $workdir
        
                [[ -n "$nocompressimage" ]] || {
       -                notice "compressing image with xz"
       +                if which pixz > /dev/null ; then
       +                        xzcomp=$(which pixz)
       +                else
       +                        xzcomp=$(which xz)
       +                fi
       +
       +                notice "compressing image with $xzcomp"
                        silly
       -                xz -zv "${image_name}.img"
       +
       +                $xzcomp "${image_name}.img"
                }
        
                mkdir -p "$R/dist"