Merge pull request #23830 from Rotsor/svn-ignore-keywords
fetchSvn: Add support for --ignore-keywords flag
This commit is contained in:
commit
777bc07e1f
|
@ -22,7 +22,8 @@ fi;
|
|||
# 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. Pass in extra p's to handle redirects.
|
||||
printf 'p\np\np\n' | svn export --trust-server-cert --non-interactive ${ignoreExternals:+--ignore-externals} \
|
||||
printf 'p\np\np\n' | svn export --trust-server-cert --non-interactive \
|
||||
${ignoreExternals:+--ignore-externals} ${ignoreKeywords:+--ignore-keywords} \
|
||||
-r "$rev" "$url" "$out"
|
||||
|
||||
stopNest
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{stdenv, subversion, sshSupport ? false, openssh ? null}:
|
||||
{url, rev ? "HEAD", md5 ? "", sha256 ? "", ignoreExternals ? false, name ? null}:
|
||||
{url, rev ? "HEAD", md5 ? "", sha256 ? "",
|
||||
ignoreExternals ? false, ignoreKeywords ? false, name ? null}:
|
||||
|
||||
let
|
||||
repoName = with stdenv.lib;
|
||||
|
@ -31,7 +32,7 @@ stdenv.mkDerivation {
|
|||
outputHashMode = "recursive";
|
||||
outputHash = if sha256 == "" then md5 else sha256;
|
||||
|
||||
inherit url rev sshSupport openssh ignoreExternals;
|
||||
inherit url rev sshSupport openssh ignoreExternals ignoreKeywords;
|
||||
|
||||
impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars;
|
||||
preferLocalBuild = true;
|
||||
|
|
Loading…
Reference in New Issue