about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2013-11-01 22:41:14 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2013-11-01 22:54:13 +0100
commit2d79cc7950187a02deb9f05fb20a5b7df82fc872 (patch)
treea3520f5a069c14c17033eb538598f91eb941349e /pkgs/build-support
parent588db4727ce9e630d46a37c2d3b97048cd2865ab (diff)
downloadnixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.tar
nixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.tar.gz
nixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.tar.bz2
nixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.tar.lz
nixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.tar.xz
nixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.tar.zst
nixlib-2d79cc7950187a02deb9f05fb20a5b7df82fc872.zip
fetchsvn: handle redirect(s)
Instead of failing if the server redirects us to a new URL, accept up to
2 redirects by printing 2 extra p's to subversion.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/fetchsvn/builder.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchsvn/builder.sh b/pkgs/build-support/fetchsvn/builder.sh
index ea52ca19fa67..68dce2cc585b 100644
--- a/pkgs/build-support/fetchsvn/builder.sh
+++ b/pkgs/build-support/fetchsvn/builder.sh
@@ -21,8 +21,8 @@ fi;
 # 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 ${ignoreExternals:+--ignore-externals} \
+# hash of the output matters. Pass in extra p's to handle redirects.
+printf 'p\np\np\n' | svn export ${ignoreExternals:+--ignore-externals} \
     -r "$rev" "$url" "$out"
 
 stopNest