* Don't rely on tar knowing about .xz.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31708
This commit is contained in:
Eelco Dolstra 2012-01-19 17:33:33 +00:00
parent e1f901c117
commit 61d0c5d931

View File

@ -430,6 +430,10 @@ unpackFile() {
header "unpacking source archive $curSrc" 3
case "$curSrc" in
*.tar.xz | *.tar.lzma)
# Don't rely on tar knowing about .xz.
xz -d < $curSrc | tar xv -
;;
*.tar | *.tar.* | *.tgz | *.tbz2)
# GNU tar can automatically select the decompression method
# (info "(tar) gzip").