summary refs log tree commit diff
path: root/pkgs/build-support/fetchcvs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/fetchcvs')
-rwxr-xr-xpkgs/build-support/fetchcvs/nix-prefetch-cvs8
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)