commit: 05d4eb5bf4930d032bd8bccb4838f5d0a48982d1
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 25 09:52:35 2019 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Jan 31 09:12:33 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05d4eb5b
eclass/unpacker.eclass: localize a couple variables
To avoid exporting them to the ebuild env.
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
eclass/unpacker.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 41aa3ef43da..370f0a9c59a 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -339,6 +339,7 @@ _unpacker() {
a=$(find_unpackable_file "${a}")
# first figure out the decompression method
+ local comp=""
case ${m} in
*.bz2|*.tbz|*.tbz2)
local bzcmd=${PORTAGE_BZIP2_COMMAND:-$(type -P pbzip2 || type
-P bzip2)}
@@ -353,11 +354,10 @@ _unpacker() {
*.lz)
: ${UNPACKER_LZIP:=$(type -P plzip || type -P pdlzip || type -P
lzip)}
comp="${UNPACKER_LZIP} -dc" ;;
- *) comp="" ;;
esac
# then figure out if there are any archiving aspects
- arch=""
+ local arch=""
case ${m} in
*.tgz|*.tbz|*.tbz2|*.txz|*.tar.*|*.tar)
arch="tar --no-same-owner -xof" ;;