diff options
author | Marc Weber <marco-oweber@gmx.de> | 2009-07-16 17:17:23 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2009-07-16 17:17:23 +0000 |
commit | ec0e356b9ae9e5f561d394a76440fc74562be6fa (patch) | |
tree | 92db59d0e05ad9d1bdee355273f0a234bb83c205 /pkgs/build-support/fetchurl/builder.sh | |
parent | 13e3c0d7b98e6f03e2a1d907b05aa31dc4a4268e (diff) | |
download | nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.tar nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.tar.gz nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.tar.bz2 nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.tar.lz nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.tar.xz nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.tar.zst nixlib-ec0e356b9ae9e5f561d394a76440fc74562be6fa.zip |
Revert "adding NIX_CONTINUE_DOWNLOADS feature, see mkdir comment"
This reverts commit -r16401 svn path=/nixpkgs/trunk/; revision=16405
Diffstat (limited to 'pkgs/build-support/fetchurl/builder.sh')
-rw-r--r-- | pkgs/build-support/fetchurl/builder.sh | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/pkgs/build-support/fetchurl/builder.sh b/pkgs/build-support/fetchurl/builder.sh index a8cc325c403d..22ba25e90a4f 100644 --- a/pkgs/build-support/fetchurl/builder.sh +++ b/pkgs/build-support/fetchurl/builder.sh @@ -23,19 +23,8 @@ tryDownload() { echo header "trying $url" success= - cache_file="/var/nix-downloads/$outputHash" - if { test -n "$NIX_CONTINUE_DOWNLOADS" && touch "$cache_file";}; then - chmod g+w $cache_file # ensure another nixbld user can continue! - # no locking is taking place. I think nix builder locking is enough - if $curl --fail "$url" -C - --output "$cache_file"; then - mv "$cache_file" "$out" - chmod g-w $out # ensure another nixbld user can continue! - success=1 - fi - else - if $curl --fail "$url" --output "$out"; then - success=1 - fi + if $curl --fail "$url" --output "$out"; then + success=1 fi stopNest } |