mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
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.
This commit is contained in:
parent
588db4727c
commit
2d79cc7950
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user