diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-27 04:28:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-27 04:28:47 +0000 |
commit | 408732e8cdcf07354a7cd16e2ecd0d709ff21360 (patch) | |
tree | 73b32479790763b966d25e3990b0cedb35794b31 | |
parent | Note that --noreplace takes precedence over options such as --newuse. (diff) | |
download | portage-multirepo-408732e8cdcf07354a7cd16e2ecd0d709ff21360.tar.gz portage-multirepo-408732e8cdcf07354a7cd16e2ecd0d709ff21360.tar.bz2 portage-multirepo-408732e8cdcf07354a7cd16e2ecd0d709ff21360.zip |
Remove unused tar_opts variable inside unpack(). Thanks to zong_sharo for
reporting. (trunk r13181)
svn path=/main/branches/2.1.6/; revision=13210
-rwxr-xr-x | bin/ebuild.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 79db02cf..9ac89174 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -327,7 +327,6 @@ unpack() { local x local y local myfail - local tar_opts="" local eapi=${EAPI:-0} [ -z "$*" ] && die "Nothing passed to the 'unpack' command" @@ -349,7 +348,7 @@ unpack() { _unpack_tar() { if [ "${y}" == "tar" ]; then - $1 -dc "${srcdir}${x}" | tar xof - ${tar_opts} + $1 -dc "$srcdir$x" | tar xof - assert "$myfail" else $1 -dc "${srcdir}${x}" > ${x%.*} || die "$myfail" @@ -359,13 +358,13 @@ unpack() { myfail="failure unpacking ${x}" case "${x##*.}" in tar) - tar xof "${srcdir}${x}" ${tar_opts} || die "$myfail" + tar xof "$srcdir$x" || die "$myfail" ;; tgz) - tar xozf "${srcdir}${x}" ${tar_opts} || die "$myfail" + tar xozf "$srcdir$x" || die "$myfail" ;; tbz|tbz2) - bzip2 -dc "${srcdir}${x}" | tar xof - ${tar_opts} + bzip2 -dc "$srcdir$x" | tar xof - assert "$myfail" ;; ZIP|zip|jar) |