Remove unused tar_opts variable inside unpack(). Thanks to zong_sharo for
authorZac Medico <zmedico@gentoo.org>
Wed, 25 Mar 2009 00:34:18 +0000 (00:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 25 Mar 2009 00:34:18 +0000 (00:34 -0000)
reporting.

svn path=/main/trunk/; revision=13181

bin/ebuild.sh

index 79db02cf3e966766b77ce576691b8b6fd9efc816..9ac89174fc1506e3b0c170d33166bb5f0f9821ef 100755 (executable)
@@ -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)