From 2d79cc7950187a02deb9f05fb20a5b7df82fc872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Fri, 1 Nov 2013 22:41:14 +0100 Subject: [PATCH] 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. --- pkgs/build-support/fetchsvn/builder.sh | 4 ++-- 1 file 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