tar doesn't need -f - to read from stdin

svn path=/nixpkgs/branches/stdenv-updates/; revision=33574
This commit is contained in:
Shea Levy 2012-04-04 16:27:04 +00:00
parent 4a84fd30b5
commit 358e51bb6d

View File

@ -432,7 +432,7 @@ unpackFile() {
case "$curSrc" in
*.tar.xz | *.tar.lzma)
# Don't rely on tar knowing about .xz.
xz -d < $curSrc | tar xf -
xz -d < $curSrc | tar x
;;
*.tar | *.tar.* | *.tgz | *.tbz2)
# GNU tar can automatically select the decompression method