Skip to content

Commit

Permalink
unpacker.eclass: add zst support
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/760905
Closes: gentoo#18738
Signed-off-by: Alexey Mishustin <[email protected]>
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
halcon74 authored and floppym committed Dec 21, 2020
1 parent 20a6be3 commit ea98bf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eclass/unpacker.eclass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: unpacker.eclass
Expand Down Expand Up @@ -356,6 +356,8 @@ _unpacker() {
*.lz)
: ${UNPACKER_LZIP:=$(type -P plzip || type -P pdlzip || type -P lzip)}
comp="${UNPACKER_LZIP} -dc" ;;
*.zst)
comp="zstd -dfc" ;;
esac

# then figure out if there are any archiving aspects
Expand Down Expand Up @@ -459,6 +461,8 @@ unpacker_src_uri_depends() {
d="app-arch/unzip" ;;
*.lz)
d="|| ( app-arch/plzip app-arch/pdlzip app-arch/lzip )" ;;
*.zst)
d="app-arch/zstd" ;;
esac
deps+=" ${d}"
done
Expand Down

0 comments on commit ea98bf9

Please sign in to comment.