1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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