diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-04-01 07:17:09 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-04-01 07:17:09 +0200 |
commit | 61529d3eb35c738fe61b62f11443a955af597cb0 (patch) | |
tree | 38623a0a3f5bb59233dd0a163df8454f4b0ea634 /scripts/tarpkg | |
parent | f89d075247f067799af765e8373c5b39a1fad49a (diff) |
avoid xz where possible
Diffstat (limited to 'scripts/tarpkg')
-rwxr-xr-x | scripts/tarpkg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tarpkg b/scripts/tarpkg index 40ff94122..43a7ab4a1 100755 --- a/scripts/tarpkg +++ b/scripts/tarpkg @@ -16,14 +16,14 @@ if [ "$1" = "build" ];then chmod +x ${2}/usr/lib/pkg/${pkgname}.$file ) done rm -rf $2/CONTROL - (cd $2 && tar -cf - .|xz -c > $3/${pkgname}_${version}_${arch}.tar.xz) + (cd $2 && tar -cf - .|gzip -c > $3/${pkgname}_${version}_${arch}.tar.gz) elif [ "$1" = "install" ];then pkg=$(echo $(basename $2)|sed -e "s#_.*##") if [ -x ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.preinst ]; then IPKG_INSTROOT="$PKG_INSTROOT" ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.preinst rm ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.preinst fi - xz -d -c $2|tar -xpf - -C ${PKG_INSTROOT} + gzip -d -c $2|tar -xpf - -C ${PKG_INSTROOT} if [ -x ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.postinst ]; then IPKG_INSTROOT="$PKG_INSTROOT" ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.postinst rm ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.postinst |