diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-02-28 23:43:21 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-02-28 23:43:21 +0000 |
commit | b94af47b86f678eb894f4d9421b252d09ba9e0b7 (patch) | |
tree | dc4ad82957326b136b44f2de0bad9864944a85f4 /pkgs/build-support | |
parent | 66738cc35637cab52931480729376afe790067d8 (diff) | |
download | nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.tar nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.tar.gz nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.tar.bz2 nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.tar.lz nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.tar.xz nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.tar.zst nixlib-b94af47b86f678eb894f4d9421b252d09ba9e0b7.zip |
* Quick hack to support checkout by date.
svn path=/nixpkgs/trunk/; revision=10890
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-x | pkgs/build-support/fetchcvs/nix-prefetch-cvs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchcvs/nix-prefetch-cvs b/pkgs/build-support/fetchcvs/nix-prefetch-cvs index 02d066bb276d..29e0d29b52e9 100755 --- a/pkgs/build-support/fetchcvs/nix-prefetch-cvs +++ b/pkgs/build-support/fetchcvs/nix-prefetch-cvs @@ -52,11 +52,13 @@ if test -z "$finalPath"; then # Perform the checkout. if test -z "$tag"; then - rtag="-DNOW" + args=(-D "now") + elif test "$USE_DATE" = "1"; then + args=(-D "$tag") else - rtag="-r $tag" + args=(-r "$tag") fi - (cd "$tmpPath" && cvs -f -z7 -d $cvsRoot export $rtag -d cvs-export $module >&2) + (cd "$tmpPath" && cvs -f -z0 -d $cvsRoot export "${args[*]}" -d cvs-export $module >&2) # Compute the hash. hash=$(nix-hash --type $hashType $hashFormat $tmpFile) |