(trunk r12593)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:48:50 +0000 (03:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:48:50 +0000 (03:48 -0000)
svn path=/main/branches/2.1.6/; revision=12874

bin/ebuild.sh

index 301eb7949b3ffd324efa28c6632e6487aaf026d9..93558f39e2ec2dccfa716a1a1052b01d5a13fa06 100755 (executable)
@@ -434,6 +434,14 @@ unpack() {
                                        lzma -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
                                fi
                                ;;
+                       xz)
+                               if [ "${y}" == "tar" ]; then
+                                       xz -dc "${srcdir}${x}" | tar xof - ${tar_opts}
+                                       assert "$myfail"
+                               else
+                                       xz -dc "${srcdir}${x}" > ${x%.*} || die "$myfail"
+                               fi
+                               ;;
                        *)
                                vecho "unpack ${x}: file format not recognized. Ignoring."
                                ;;