diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-12-15 17:21:20 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-12-15 17:21:20 +0000 |
commit | 07687a8514451f0934485e4658a078a2c6f96b89 (patch) | |
tree | e7f5736ee329a426d990acc52141900c497b0057 /pkgs/build-support/fetchsvn | |
parent | 62d12a8cdb0c91043a880339a25533f016538a13 (diff) |
* Pipe the "p" character into Subversion to force it to accept the
server's certificate. This is perfectly safe: we don't care whether the server is being spoofed --- only the cryptographic hash of the output matters. svn path=/nixpkgs/trunk/; revision=4377
Diffstat (limited to 'pkgs/build-support/fetchsvn')
-rw-r--r-- | pkgs/build-support/fetchsvn/builder.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchsvn/builder.sh b/pkgs/build-support/fetchsvn/builder.sh index d3099e7ccccd7..1f644fec83eb1 100644 --- a/pkgs/build-support/fetchsvn/builder.sh +++ b/pkgs/build-support/fetchsvn/builder.sh @@ -7,7 +7,11 @@ echo $prefetch if test -e "$prefetch"; then mv $prefetch $out else - svn export -r "$rev" "$url" $out + # Pipe the "p" character into Subversion to force it to accept the + # server's certificate. This is perfectly safe: we don't care + # whether the server is being spoofed --- only the cryptographic + # hash of the output matters. + echo 'p' | svn export -r "$rev" "$url" $out fi actual=$(nix-hash $out) |