fixing unpack so it works once again for tar :/
authorBrian Harring <ferringb@gentoo.org>
Thu, 8 Sep 2005 16:31:36 +0000 (16:31 -0000)
committerBrian Harring <ferringb@gentoo.org>
Thu, 8 Sep 2005 16:31:36 +0000 (16:31 -0000)
svn path=/main/branches/2.0/; revision=1992

ChangeLog
bin/ebuild.sh

index b6d196dd1298c1b12a30b5a178fa59d298f5af1c..21141fc12dfa9914acdf8cfa5503817b212fe0fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,10 @@
     2. /var/cache/edb/world is now /var/lib/portage/world.
     3. /etc/portage/profile/virtuals is _USER_ configs only.
 
+  08 Sep 2005; Brian Harring <ferringb@gentoo.org> bin/ebuild.sh: Fixed 
+  unpack so that it actually works now.  ${tarvars} placement was a bit 
+  wrong, which is odd considering it shouldn't have changed.
+
   08 Sep 2005; Jason Stubbs <jstubbs@gentoo.org> bin/emerge: Only warn on
   removal of system virtuals if there is only one satisfying package.
 
index c8288a8ddbe8814169b9e30f57bd47daf2061d86..8cba9030c2ac47946d72fce652af6a3446ec6ad3 100755 (executable)
@@ -365,10 +365,10 @@ unpack() {
                myfail="failure unpacking ${x}"
                case "${x##*.}" in
                        tar)
-                               tar ${tarvars} xf "${srcdir}${x}" || die "$myfail"
+                               tar xf "${srcdir}${x}" ${tarvars} || die "$myfail"
                                ;;
                        tgz)
-                               tar ${tarvars} xzf "${srcdir}${x}" || die "$myfail"
+                               tar xzf "${srcdir}${x}" ${tarvars} || die "$myfail"
                                ;;
                        tbz2)
                                bzip2 -dc "${srcdir}${x}" | tar xf - ${tarvars}
@@ -379,7 +379,7 @@ unpack() {
                                ;;
                        gz|Z|z)
                                if [ "${y}" == "tar" ]; then
-                                       tar ${tarvars} xzf "${srcdir}${x}" || die "$myfail"
+                                       tar zxf "${srcdir}${x}" ${tarvars} || die "$myfail"
                                else
                                        gzip -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
                                fi