add support for unpacking .tbz, .a, and .deb files
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Mar 2006 03:54:54 +0000 (03:54 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Mar 2006 03:54:54 +0000 (03:54 -0000)
svn path=/main/trunk/; revision=2902

bin/ebuild.sh

index 1402f71a46acb498dd8af287d79db744b6e27987..26bd235e827dcd7b8cee03b67366fb5a6d2ceec0 100755 (executable)
@@ -395,7 +395,7 @@ unpack() {
                        tgz)
                                tar xzf "${srcdir}${x}" ${tarvars} || die "$myfail"
                                ;;
-                       tbz2)
+                       tbz|tbz2)
                                bzip2 -dc "${srcdir}${x}" | tar xf - ${tarvars}
                                assert "$myfail"
                                ;;
@@ -423,6 +423,9 @@ unpack() {
                        LHa|LHA|lha|lzh)
                                lha xqf "${srcdir}/${x}" || die "$myfail"
                                ;;
+                       a|deb)
+                               ar x "${srcdir}/${x}" || die "$myfail"
+                               ;;
                        *)
                                echo "unpack ${x}: file format not recognized. Ignoring."
                                ;;