diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-12-03 15:01:54 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-12-03 15:01:54 +0000 |
commit | 69421194a5b578c6bb3ff251e7ef2fc63d7ac175 (patch) | |
tree | e35cda0b560d6fcf742b4a58a1aa1f4e5461a18f /pkgs/build-support/fetchsvn | |
parent | 135cfab57e2dc595a28b6eb71fb8a1ba47955e09 (diff) | |
download | nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.tar nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.tar.gz nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.tar.bz2 nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.tar.lz nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.tar.xz nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.tar.zst nixpkgs-69421194a5b578c6bb3ff251e7ef2fc63d7ac175.zip |
nix-prefetch-svn: Support $NIX_PREFETCH_SVN_LEAVE_DOT_SVN.
svn path=/nixpkgs/trunk/; revision=18789
Diffstat (limited to 'pkgs/build-support/fetchsvn')
-rwxr-xr-x | pkgs/build-support/fetchsvn/nix-prefetch-svn | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchsvn/nix-prefetch-svn b/pkgs/build-support/fetchsvn/nix-prefetch-svn index b9d10fea21c..2858a0b01ab 100755 --- a/pkgs/build-support/fetchsvn/nix-prefetch-svn +++ b/pkgs/build-support/fetchsvn/nix-prefetch-svn @@ -48,7 +48,14 @@ if test -z "$finalPath"; then trap "rm -rf $tmpPath" EXIT # Perform the checkout. - echo p | svn export --quiet -r "$rev" "$url" $tmpFile >&2 + if test "$NIX_PREFETCH_SVN_LEAVE_DOT_SVN" != 1 + then + command="export" + else + command="checkout" + fi + + echo p | svn "$command" --quiet -r "$rev" "$url" "$tmpFile" >&2 # Compute the hash. hash=$(nix-hash --type $hashType $hashFormat $tmpFile) |